fixed 'Questions?' bottom sheet issue in light theme

This commit is contained in:
ashilkn 2022-06-02 20:03:28 +05:30
parent 326c99b541
commit 8f54ba548e
5 changed files with 9 additions and 6 deletions

View file

@ -43,6 +43,10 @@ extension CustomColorScheme on ColorScheme {
Color get cancelSelectedButtonColor => brightness == Brightness.light Color get cancelSelectedButtonColor => brightness == Brightness.light
? Color.fromRGBO(0, 0, 0, 0.35) ? Color.fromRGBO(0, 0, 0, 0.35)
: Color.fromRGBO(16, 16, 16, 0.5); : Color.fromRGBO(16, 16, 16, 0.5);
Color get bgColorForQuestions => brightness == Brightness.light
? Colors.white
: Color.fromRGBO(10, 15, 15, 1.0);
} }
OutlinedButtonThemeData buildOutlinedButtonThemeData( OutlinedButtonThemeData buildOutlinedButtonThemeData(

View file

@ -66,6 +66,8 @@ class FaqWidget extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ExpansionTileCard( return ExpansionTileCard(
borderRadius: BorderRadius.all(Radius.circular(0)),
elevation: 0,
title: Text(faq.q), title: Text(faq.q),
expandedTextColor: Theme.of(context).buttonColor, expandedTextColor: Theme.of(context).buttonColor,
baseColor: Theme.of(context).cardColor, baseColor: Theme.of(context).cardColor,

View file

@ -124,7 +124,6 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
} }
Widget _getBody(String buttonTextAndHeading) { Widget _getBody(String buttonTextAndHeading) {
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom != 0;
final email = Configuration.instance.getEmail(); final email = Configuration.instance.getEmail();
var passwordStrengthText = 'Weak'; var passwordStrengthText = 'Weak';
var passwordStrengthColor = Colors.redAccent; var passwordStrengthColor = Colors.redAccent;

View file

@ -112,9 +112,6 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// final appBar = AppBar(
// title: Text("Subscription"),
// );
final appBar = widget.isOnboarding final appBar = widget.isOnboarding
? AppBar( ? AppBar(
elevation: 0, elevation: 0,

View file

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:photos/ente_theme_data.dart';
import 'package:photos/models/subscription.dart'; import 'package:photos/models/subscription.dart';
import 'package:photos/ui/billing_questions_widget.dart'; import 'package:photos/ui/billing_questions_widget.dart';
import 'package:photos/utils/data_util.dart'; import 'package:photos/utils/data_util.dart';
@ -111,7 +112,7 @@ class SubFaqWidget extends StatelessWidget {
behavior: HitTestBehavior.translucent, behavior: HitTestBehavior.translucent,
onTap: () { onTap: () {
showModalBottomSheet<void>( showModalBottomSheet<void>(
backgroundColor: Color.fromRGBO(10, 15, 15, 1.0), backgroundColor: Theme.of(context).colorScheme.bgColorForQuestions,
barrierColor: Colors.black87, barrierColor: Colors.black87,
context: context, context: context,
builder: (context) { builder: (context) {
@ -126,7 +127,7 @@ class SubFaqWidget extends StatelessWidget {
text: "Questions?", text: "Questions?",
style: TextStyle( style: TextStyle(
color: Colors.blue, color: Colors.blue,
fontFamily: 'Ubuntu', fontFamily: 'Inter',
), ),
), ),
), ),