refactor: accentTextTheme.bodySmall.color -> cardColor

This commit is contained in:
Rafael Saes 2023-07-03 09:34:56 -03:00
parent 2525318b6d
commit ec1d2518bf
15 changed files with 12 additions and 39 deletions

View file

@ -29,10 +29,7 @@ class ContactListPage extends BasePage {
height: 32.0,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!),
color: Theme.of(context).cardColor),
child: Stack(
alignment: Alignment.center,
children: <Widget>[

View file

@ -48,10 +48,7 @@ class ExchangeConfirmPage extends BasePage {
borderRadius: BorderRadius.all(Radius.circular(30)),
border: Border.all(
width: 1,
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!),
color: Theme.of(context).cardColor),
color: Theme.of(context).dialogTheme.backgroundColor),
child: Column(
children: <Widget>[

View file

@ -145,7 +145,7 @@ class IoniaGiftCardDetailPage extends BasePage {
viewModel.refeshCard();
},
text: S.of(context).more_options,
color: Theme.of(context).accentTextTheme!.bodySmall!.color!,
color: Theme.of(context).cardColor,
textColor: Theme.of(context).primaryTextTheme!.titleLarge!.color!,
),
SizedBox(height: 12),

View file

@ -182,7 +182,7 @@ class _IoniaPaymentStatusPageBodyBodyState extends State<_IoniaPaymentStatusPage
return PrimaryButton(
onPressed: () => Navigator.of(context).pushNamed(Routes.support),
text: S.of(context).contact_support,
color: Theme.of(context).accentTextTheme!.bodySmall!.color!,
color: Theme.of(context).cardColor,
textColor: Theme.of(context).primaryTextTheme!.titleLarge!.color!);
})
])

View file

@ -56,10 +56,7 @@ class IoniaAlertModal extends StatelessWidget {
PrimaryButton(
onPressed: () => Navigator.pop(context),
text: actionTitle,
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!,
color: Theme.of(context).cardColor,
textColor:
Theme.of(context).primaryTextTheme!.titleLarge!.color!,
),

View file

@ -17,10 +17,7 @@ class SelectButton extends StatelessWidget {
Widget build(BuildContext context) {
final color = isSelected
? Colors.green
: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!;
: Theme.of(context).cardColor;
final textColor = isSelected
? Theme.of(context)
.accentTextTheme!

View file

@ -100,10 +100,7 @@ class AnonPayReceivePage extends BasePage {
),
icon: Icon(
Icons.edit,
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!,
color: Theme.of(context).cardColor,
size: 22.0,
),
),

View file

@ -24,10 +24,7 @@ class RestoreButton extends StatelessWidget {
alignment: Alignment.topLeft,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(12)),
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!,
color: Theme.of(context).cardColor,
),
child: Row(
mainAxisSize: MainAxisSize.max,

View file

@ -67,10 +67,7 @@ class WalletSeedPage extends BasePage {
margin: EdgeInsets.only(left: 10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(16)),
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!),
color: Theme.of(context).cardColor),
child: Text(
S.of(context).seed_language_next,
style: TextStyle(

View file

@ -56,7 +56,7 @@ class WalletKeysPage extends BasePage {
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12.0),
color: Theme.of(context).accentTextTheme!.bodySmall!.color!,
color: Theme.of(context).cardColor,
),
child: Center(
child: Padding(

View file

@ -181,7 +181,7 @@ class WalletListBodyState extends State<WalletListBody> {
},
image: restoreWalletImage,
text: S.of(context).wallet_list_restore_wallet,
color: Theme.of(context).accentTextTheme!.bodySmall!.color!,
color: Theme.of(context).cardColor,
textColor: Theme.of(context).primaryTextTheme!.titleLarge!.color!)
])),
);

View file

@ -170,10 +170,7 @@ class WelcomePage extends BasePage {
},
image: restoreWalletImage,
text: S.of(context).restore_wallet,
color: Theme.of(context)
.accentTextTheme!
.bodySmall!
.color!,
color: Theme.of(context).cardColor,
textColor: Theme.of(context)
.primaryTextTheme!
.titleLarge!

View file

@ -196,7 +196,6 @@ class BrightTheme extends LightTheme {
decorationColor: Colors.white // dialog background
),
bodySmall: TextStyle(
color: Palette.moderateLavender, // container (confirm exchange)
backgroundColor: Palette.moderateLavender, // button background (confirm exchange)
decorationColor: Palette.darkBlueCraiola, // text color (information page)
),

View file

@ -199,7 +199,6 @@ class DarkTheme extends ThemeBase {
decorationColor: PaletteDark.darkNightBlue // dialog background
),
bodySmall: TextStyle(
color: PaletteDark.nightBlue, // container (confirm exchange)
backgroundColor: PaletteDark.deepVioletBlue, // button background (confirm exchange)
decorationColor: Palette.darkLavender, // text color (information page)
),

View file

@ -197,7 +197,6 @@ class LightTheme extends ThemeBase {
decorationColor: Colors.white // dialog background
),
bodySmall: TextStyle(
color: Palette.blueAlice, // container (confirm exchange)
backgroundColor: Palette.blueAlice, // button background (confirm exchange)
decorationColor: Palette.darkBlueCraiola, // text color (information page)
),