fixed 'Questions?' bottom sheet issue in light theme
This commit is contained in:
parent
326c99b541
commit
8f54ba548e
|
@ -43,6 +43,10 @@ extension CustomColorScheme on ColorScheme {
|
|||
Color get cancelSelectedButtonColor => brightness == Brightness.light
|
||||
? Color.fromRGBO(0, 0, 0, 0.35)
|
||||
: Color.fromRGBO(16, 16, 16, 0.5);
|
||||
|
||||
Color get bgColorForQuestions => brightness == Brightness.light
|
||||
? Colors.white
|
||||
: Color.fromRGBO(10, 15, 15, 1.0);
|
||||
}
|
||||
|
||||
OutlinedButtonThemeData buildOutlinedButtonThemeData(
|
||||
|
|
|
@ -66,6 +66,8 @@ class FaqWidget extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ExpansionTileCard(
|
||||
borderRadius: BorderRadius.all(Radius.circular(0)),
|
||||
elevation: 0,
|
||||
title: Text(faq.q),
|
||||
expandedTextColor: Theme.of(context).buttonColor,
|
||||
baseColor: Theme.of(context).cardColor,
|
||||
|
|
|
@ -124,7 +124,6 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
|
|||
}
|
||||
|
||||
Widget _getBody(String buttonTextAndHeading) {
|
||||
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom != 0;
|
||||
final email = Configuration.instance.getEmail();
|
||||
var passwordStrengthText = 'Weak';
|
||||
var passwordStrengthColor = Colors.redAccent;
|
||||
|
|
|
@ -112,9 +112,6 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// final appBar = AppBar(
|
||||
// title: Text("Subscription"),
|
||||
// );
|
||||
final appBar = widget.isOnboarding
|
||||
? AppBar(
|
||||
elevation: 0,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:photos/ente_theme_data.dart';
|
||||
import 'package:photos/models/subscription.dart';
|
||||
import 'package:photos/ui/billing_questions_widget.dart';
|
||||
import 'package:photos/utils/data_util.dart';
|
||||
|
@ -111,7 +112,7 @@ class SubFaqWidget extends StatelessWidget {
|
|||
behavior: HitTestBehavior.translucent,
|
||||
onTap: () {
|
||||
showModalBottomSheet<void>(
|
||||
backgroundColor: Color.fromRGBO(10, 15, 15, 1.0),
|
||||
backgroundColor: Theme.of(context).colorScheme.bgColorForQuestions,
|
||||
barrierColor: Colors.black87,
|
||||
context: context,
|
||||
builder: (context) {
|
||||
|
@ -126,7 +127,7 @@ class SubFaqWidget extends StatelessWidget {
|
|||
text: "Questions?",
|
||||
style: TextStyle(
|
||||
color: Colors.blue,
|
||||
fontFamily: 'Ubuntu',
|
||||
fontFamily: 'Inter',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue