Fix conflicts with flutter upgrade

Partially update themes to the new version
This commit is contained in:
OmarHatem 2022-10-20 15:28:17 +02:00
parent 9e93f2234b
commit 95f1ff7ff8
14 changed files with 62 additions and 61 deletions

View file

@ -21,7 +21,7 @@ class ActiveServicesPage extends BasePage {
fontSize: 22, fontSize: 22,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontFamily: 'Lato', fontFamily: 'Lato',
color: titleColor ?? Theme.of(context).primaryTextTheme.title.color), color: titleColor ?? Theme.of(context).primaryTextTheme.titleMedium?.color),
); );
} }
} }
@ -59,8 +59,11 @@ class ActiveServicesBodyState extends State<ActiveServicesBody> {
borderRadius: BorderRadius.all(Radius.circular(15)), borderRadius: BorderRadius.all(Radius.circular(15)),
gradient: LinearGradient( gradient: LinearGradient(
colors: [ colors: [
Theme.of(context).primaryTextTheme.subhead.color, Theme.of(context).primaryTextTheme.subtitle1!.color!,
Theme.of(context).primaryTextTheme.subhead.decorationColor, Theme.of(context)
.primaryTextTheme
.subtitle1!
.decorationColor!,
], ],
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
@ -103,7 +106,7 @@ class ActiveServicesBodyState extends State<ActiveServicesBody> {
padding: EdgeInsets.symmetric(horizontal: 24, vertical: 12), padding: EdgeInsets.symmetric(horizontal: 24, vertical: 12),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(15)), borderRadius: BorderRadius.all(Radius.circular(15)),
color: Theme.of(context).primaryTextTheme.display3.decorationColor, color: Theme.of(context).primaryTextTheme.displayMedium?.decorationColor,
), ),
child: InfoTextColumn( child: InfoTextColumn(
title: S.of(context).free_sms_balance, title: S.of(context).free_sms_balance,
@ -119,7 +122,7 @@ class ActiveServicesBodyState extends State<ActiveServicesBody> {
padding: EdgeInsets.symmetric(horizontal: 24, vertical: 12), padding: EdgeInsets.symmetric(horizontal: 24, vertical: 12),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(15)), borderRadius: BorderRadius.all(Radius.circular(15)),
color: Theme.of(context).primaryTextTheme.display3.decorationColor, color: Theme.of(context).primaryTextTheme.displayMedium?.decorationColor,
), ),
child: InfoTextColumn( child: InfoTextColumn(
title: S.of(context).free_data_balance, title: S.of(context).free_data_balance,

View file

@ -1,4 +1,3 @@
import 'dart:ui';
import 'package:cake_wallet/buy/buy_amount.dart'; import 'package:cake_wallet/buy/buy_amount.dart';
import 'package:cake_wallet/buy/moonpay/moonpay_buy_provider.dart'; import 'package:cake_wallet/buy/moonpay/moonpay_buy_provider.dart';
import 'package:cake_wallet/di.dart'; import 'package:cake_wallet/di.dart';
@ -8,7 +7,6 @@ import 'package:cake_wallet/src/widgets/info_alert_dialog.dart';
import 'package:cake_wallet/src/widgets/keyboard_done_button.dart'; import 'package:cake_wallet/src/widgets/keyboard_done_button.dart';
import 'package:cake_wallet/store/app_store.dart'; import 'package:cake_wallet/store/app_store.dart';
import 'package:cake_wallet/utils/show_pop_up.dart'; import 'package:cake_wallet/utils/show_pop_up.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:flutter_mobx/flutter_mobx.dart';
@ -22,7 +20,7 @@ import 'package:cake_wallet/src/widgets/base_text_form_field.dart';
import 'package:cake_wallet/view_model/cake_phone/add_balance_view_model.dart'; import 'package:cake_wallet/view_model/cake_phone/add_balance_view_model.dart';
class AddBalancePage extends BasePage { class AddBalancePage extends BasePage {
AddBalancePage({@required this.addBalanceViewModel}) AddBalancePage({required this.addBalanceViewModel})
: _amountFocus = FocusNode(), : _amountFocus = FocusNode(),
_amountController = TextEditingController() { _amountController = TextEditingController() {
_amountController.addListener(() { _amountController.addListener(() {
@ -65,7 +63,7 @@ class AddBalancePage extends BasePage {
return KeyboardActions( return KeyboardActions(
config: KeyboardActionsConfig( config: KeyboardActionsConfig(
keyboardActionsPlatform: KeyboardActionsPlatform.IOS, keyboardActionsPlatform: KeyboardActionsPlatform.IOS,
keyboardBarColor: Theme.of(context).accentTextTheme.body2.backgroundColor, keyboardBarColor: Theme.of(context).accentTextTheme.bodyText1?.backgroundColor,
nextFocus: false, nextFocus: false,
actions: [ actions: [
KeyboardActionsItem( KeyboardActionsItem(
@ -85,8 +83,8 @@ class AddBalancePage extends BasePage {
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(24), bottomRight: Radius.circular(24)), borderRadius: BorderRadius.only(bottomLeft: Radius.circular(24), bottomRight: Radius.circular(24)),
gradient: LinearGradient(colors: [ gradient: LinearGradient(colors: [
Theme.of(context).primaryTextTheme.subhead.color, Theme.of(context).primaryTextTheme.subtitle1!.color!,
Theme.of(context).primaryTextTheme.subhead.decorationColor, Theme.of(context).primaryTextTheme.subtitle1!.decorationColor!,
], begin: Alignment.topLeft, end: Alignment.bottomRight), ], begin: Alignment.topLeft, end: Alignment.bottomRight),
), ),
child: Padding( child: Padding(
@ -111,11 +109,11 @@ class AddBalancePage extends BasePage {
), ),
), ),
hintText: '0.00', hintText: '0.00',
borderColor: Theme.of(context).primaryTextTheme.body2.decorationColor, borderColor: Theme.of(context).primaryTextTheme.bodyText1?.decorationColor,
borderWidth: 0.5, borderWidth: 0.5,
textStyle: TextStyle(fontSize: 36, fontWeight: FontWeight.w500, color: Colors.white), textStyle: TextStyle(fontSize: 36, fontWeight: FontWeight.w500, color: Colors.white),
placeholderTextStyle: TextStyle( placeholderTextStyle: TextStyle(
color: Theme.of(context).primaryTextTheme.headline.decorationColor, color: Theme.of(context).primaryTextTheme.headline5?.decorationColor,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 36, fontSize: 36,
), ),
@ -129,7 +127,7 @@ class AddBalancePage extends BasePage {
child: Text( child: Text(
"${S.of(context).cake_phone_products_example}:", "${S.of(context).cake_phone_products_example}:",
style: TextStyle( style: TextStyle(
color: Theme.of(context).primaryTextTheme.title.color, color: Theme.of(context).primaryTextTheme.headline6?.color,
fontSize: 16, fontSize: 16,
), ),
), ),
@ -143,7 +141,7 @@ class AddBalancePage extends BasePage {
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
margin: const EdgeInsets.only(bottom: 8), margin: const EdgeInsets.only(bottom: 8),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).accentTextTheme.caption.backgroundColor, color: Theme.of(context).accentTextTheme.caption?.backgroundColor,
borderRadius: BorderRadius.circular(15), borderRadius: BorderRadius.circular(15),
), ),
child: RichText( child: RichText(
@ -157,7 +155,7 @@ class AddBalancePage extends BasePage {
], ],
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: Theme.of(context).primaryTextTheme.title.color, color: Theme.of(context).primaryTextTheme.headline6?.color,
), ),
), ),
), ),
@ -176,7 +174,7 @@ class AddBalancePage extends BasePage {
builder: (dialogContext) { builder: (dialogContext) {
return AlertWithTwoActions( return AlertWithTwoActions(
alertTitle: S.of(context).confirm_sending, alertTitle: S.of(context).confirm_sending,
alertTitleColor: Theme.of(context).primaryTextTheme.title.decorationColor, alertTitleColor: Theme.of(context).primaryTextTheme.headline6!.decorationColor!,
alertContent: S.of(context).confirm_delete_template, alertContent: S.of(context).confirm_delete_template,
contentWidget: Material( contentWidget: Material(
color: Colors.transparent, color: Colors.transparent,
@ -191,8 +189,8 @@ class AddBalancePage extends BasePage {
value: cryptoAmount(getIt value: cryptoAmount(getIt
.get<AppStore>() .get<AppStore>()
.wallet .wallet
.calculateEstimatedFee( !.calculateEstimatedFee(
getIt.get<AppStore>().settingsStore.priority[getIt.get<AppStore>().wallet.type], getIt.get<AppStore>().settingsStore!.priority[getIt.get<AppStore>().wallet!.type],
addBalanceViewModel.buyAmountViewModel.doubleAmount.floor(), addBalanceViewModel.buyAmountViewModel.doubleAmount.floor(),
) )
.toDouble())), .toDouble())),
@ -212,7 +210,7 @@ class AddBalancePage extends BasePage {
style: TextStyle( style: TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
@ -222,8 +220,8 @@ class AddBalancePage extends BasePage {
isDividerExists: true, isDividerExists: true,
rightButtonText: S.of(context).ok, rightButtonText: S.of(context).ok,
leftButtonText: S.of(context).cancel, leftButtonText: S.of(context).cancel,
rightActionButtonColor: Theme.of(context).accentTextTheme.body2.color, rightActionButtonColor: Theme.of(context).accentTextTheme.bodyText1?.color,
leftActionButtonColor: Theme.of(context).primaryTextTheme.body2.backgroundColor, leftActionButtonColor: Theme.of(context).primaryTextTheme.bodyText1?.backgroundColor,
actionRightButton: () { actionRightButton: () {
Navigator.of(dialogContext).pop(); Navigator.of(dialogContext).pop();
showPaymentConfirmationPopup(context); showPaymentConfirmationPopup(context);
@ -232,7 +230,7 @@ class AddBalancePage extends BasePage {
}); });
}, },
text: S.of(context).buy, text: S.of(context).buy,
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
isLoading: false, isLoading: false,
isDisabled: addBalanceViewModel.buyAmountViewModel.amount.isEmpty, isDisabled: addBalanceViewModel.buyAmountViewModel.amount.isEmpty,
@ -276,7 +274,7 @@ class AddBalancePage extends BasePage {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
], ],
@ -328,7 +326,7 @@ class AddBalancePage extends BasePage {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Padding( Padding(
@ -348,7 +346,7 @@ class AddBalancePage extends BasePage {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Padding( Padding(

View file

@ -80,7 +80,7 @@ class CakePhoneAuthBodyState extends State<CakePhoneAuthBody> {
} }
}, },
text: widget.isLogin ? S.of(context).login : S.of(context).create_account, text: widget.isLogin ? S.of(context).login : S.of(context).create_account,
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
), ),
Padding( Padding(
@ -116,7 +116,7 @@ class CakePhoneAuthBodyState extends State<CakePhoneAuthBody> {
], ],
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,

View file

@ -57,8 +57,8 @@ class CakePhoneProductsBodyState extends State<CakePhoneProductsBody> {
borderRadius: BorderRadius.all(Radius.circular(24)), borderRadius: BorderRadius.all(Radius.circular(24)),
gradient: LinearGradient( gradient: LinearGradient(
colors: [ colors: [
Theme.of(context).primaryTextTheme.subhead.color, Theme.of(context).primaryTextTheme.subtitle1!.color!,
Theme.of(context).primaryTextTheme.subhead.decorationColor, Theme.of(context).primaryTextTheme.subtitle1!.decorationColor!,
], ],
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,

View file

@ -162,7 +162,7 @@ class CakePhoneVerificationBodyState extends State<CakePhoneVerificationBody> {
} }
}, },
text: S.of(context).continue_text, text: S.of(context).continue_text,
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
isDisabled: disabled, isDisabled: disabled,
), ),

View file

@ -55,7 +55,7 @@ class CakePhoneWelcomeBodyState extends State<CakePhoneWelcomeBody> {
Navigator.pushNamed(context, Routes.cakePhoneAuth); Navigator.pushNamed(context, Routes.cakePhoneAuth);
}, },
text: S.of(context).create_account, text: S.of(context).create_account,
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
), ),
Padding( Padding(

View file

@ -70,7 +70,7 @@ class AutoRenewSettingsBodyState extends State<AutoRenewSettingsBody> {
S.of(context).auto_renew_term_description, S.of(context).auto_renew_term_description,
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
fontFamily: 'Lato', fontFamily: 'Lato',
), ),
), ),
@ -149,7 +149,7 @@ class AutoRenewSettingsBodyState extends State<AutoRenewSettingsBody> {
onPressed: () { onPressed: () {
}, },
text: "${S.of(context).update} ${S.of(context).auto_renew}", text: "${S.of(context).update} ${S.of(context).auto_renew}",
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
), ),
], ],

View file

@ -88,7 +88,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
: S.of(context).phone_number_promotion_text, : S.of(context).phone_number_promotion_text,
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
fontFamily: 'Lato', fontFamily: 'Lato',
), ),
), ),
@ -241,13 +241,13 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
Text( Text(
S.of(context).additional_sms_messages, S.of(context).additional_sms_messages,
style: TextStyle( style: TextStyle(
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30), borderRadius: BorderRadius.circular(30),
color: Theme.of(context).primaryTextTheme.display3.decorationColor, color: Theme.of(context).primaryTextTheme.displayMedium?.decorationColor,
), ),
child: Row( child: Row(
children: [ children: [
@ -300,7 +300,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
], ],
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
fontFamily: 'Lato', fontFamily: 'Lato',
), ),
), ),
@ -327,8 +327,8 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
isDividerExists: true, isDividerExists: true,
rightButtonText: S.of(context).ok, rightButtonText: S.of(context).ok,
leftButtonText: S.of(context).cancel, leftButtonText: S.of(context).cancel,
rightActionButtonColor: Theme.of(context).accentTextTheme.body2.color, rightActionButtonColor: Theme.of(context).accentTextTheme.bodyText1?.color,
leftActionButtonColor: Theme.of(context).primaryTextTheme.body2.backgroundColor, leftActionButtonColor: Theme.of(context).primaryTextTheme.bodyText1?.backgroundColor,
actionRightButton: () { actionRightButton: () {
Navigator.of(dialogContext).pop(); Navigator.of(dialogContext).pop();
Navigator.pushNamedAndRemoveUntil( Navigator.pushNamedAndRemoveUntil(
@ -388,7 +388,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
style: TextStyle( style: TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
@ -397,8 +397,8 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
isDividerExists: true, isDividerExists: true,
rightButtonText: S.of(context).ok, rightButtonText: S.of(context).ok,
leftButtonText: S.of(context).cancel, leftButtonText: S.of(context).cancel,
rightActionButtonColor: Theme.of(context).accentTextTheme.body2.color, rightActionButtonColor: Theme.of(context).accentTextTheme.bodyText1?.color,
leftActionButtonColor: Theme.of(context).primaryTextTheme.body2.backgroundColor, leftActionButtonColor: Theme.of(context).primaryTextTheme.bodyText1?.backgroundColor,
actionRightButton: () { actionRightButton: () {
Navigator.of(dialogContext).pop(); Navigator.of(dialogContext).pop();
showPaymentConfirmationPopup(); showPaymentConfirmationPopup();
@ -407,7 +407,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
}); });
}, },
text: "${S.of(context).pay_with} ${getIt.get<AppStore>().wallet.currency.toString()}", text: "${S.of(context).pay_with} ${getIt.get<AppStore>().wallet.currency.toString()}",
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
textColor: Colors.white, textColor: Colors.white,
), ),
], ],
@ -422,7 +422,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
padding: const EdgeInsets.all(8), padding: const EdgeInsets.all(8),
margin: const EdgeInsets.all(4), margin: const EdgeInsets.all(4),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.bodyText1?.color,
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: Icon(icon, color: Colors.white, size: 15), child: Icon(icon, color: Colors.white, size: 15),
@ -433,13 +433,13 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
child: DottedBorder( child: DottedBorder(
borderType: BorderType.Circle, borderType: BorderType.Circle,
dashPattern: [3, 3], dashPattern: [3, 3],
color: Theme.of(context).primaryTextTheme.display3.color, color: Theme.of(context).primaryTextTheme.displayMedium?.color,
strokeWidth: 3, strokeWidth: 3,
child: Padding( child: Padding(
padding: const EdgeInsets.all(6), padding: const EdgeInsets.all(6),
child: Icon( child: Icon(
icon, icon,
color: Theme.of(context).primaryTextTheme.display3.color, color: Theme.of(context).primaryTextTheme.displayMedium?.color,
size: 15, size: 15,
), ),
), ),
@ -490,7 +490,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
], ],
@ -539,7 +539,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Padding( Padding(
@ -559,7 +559,7 @@ class PhoneNumberProductBodyState extends State<PhoneNumberProductBody> {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Padding( Padding(

View file

@ -14,7 +14,7 @@ class AddOptionsTile extends StatelessWidget {
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(15)), borderRadius: BorderRadius.all(Radius.circular(15)),
color: Theme.of(context).primaryTextTheme.display3.decorationColor, color: Theme.of(context).primaryTextTheme.displayMedium?.decorationColor,
), ),
child: Row( child: Row(
children: [ children: [

View file

@ -18,7 +18,7 @@ class CakePhoneSettingsTile extends StatelessWidget {
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
Container( Container(

View file

@ -36,7 +36,7 @@ class InfoTextColumn extends StatelessWidget {
TextStyle subtitleTextStyle(BuildContext context) => TextStyle( TextStyle subtitleTextStyle(BuildContext context) => TextStyle(
fontSize: 12, fontSize: 12,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
); );
TextStyle titleTextStyle(BuildContext context) => TextStyle( TextStyle titleTextStyle(BuildContext context) => TextStyle(

View file

@ -21,14 +21,14 @@ class PlanCard extends StatelessWidget {
gradient: isSelected gradient: isSelected
? LinearGradient( ? LinearGradient(
colors: [ colors: [
Theme.of(context).primaryTextTheme.subhead.color, Theme.of(context).primaryTextTheme.subtitle1!.color!,
Theme.of(context).primaryTextTheme.subhead.decorationColor, Theme.of(context).primaryTextTheme.subtitle1!.decorationColor!,
], ],
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
) )
: null, : null,
color: isSelected ? null : Theme.of(context).primaryTextTheme.display3.decorationColor, color: isSelected ? null : Theme.of(context).primaryTextTheme.displayMedium?.decorationColor,
), ),
child: Column( child: Column(
children: [ children: [
@ -44,7 +44,7 @@ class PlanCard extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: isSelected ? Colors.white : Theme.of(context).accentTextTheme.subhead.color, color: isSelected ? Colors.white : Theme.of(context).accentTextTheme.subtitle1?.color,
fontFamily: 'Lato', fontFamily: 'Lato',
), ),
), ),

View file

@ -18,7 +18,7 @@ class ReceiptRow extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme.subhead.color, color: Theme.of(context).accentTextTheme.subtitle1?.color,
), ),
), ),
value, value,

View file

@ -50,7 +50,7 @@ class _SubscribedPhoneNumbersState extends State<SubscribedPhoneNumbers> {
padding: EdgeInsets.all(5), padding: EdgeInsets.all(5),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(30)), borderRadius: BorderRadius.all(Radius.circular(30)),
color: Theme.of(context).primaryTextTheme.display3.decorationColor, color: Theme.of(context).primaryTextTheme.headline2?.decorationColor,
), ),
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@ -96,8 +96,8 @@ class _SubscribedPhoneNumbersState extends State<SubscribedPhoneNumbers> {
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(30)), borderRadius: BorderRadius.all(Radius.circular(30)),
color: selected color: selected
? Theme.of(context).accentTextTheme.body2.color ? Theme.of(context).accentTextTheme.bodyText1?.color
: Theme.of(context).primaryTextTheme.display3.decorationColor, : Theme.of(context).primaryTextTheme.headline2?.decorationColor,
), ),
child: Text( child: Text(
title, title,