fix: theme refactor for wallet_unlock_page.dart (#951)

This commit is contained in:
Rafael Saes 2023-05-26 17:16:36 -03:00 committed by GitHub
parent 76559e50d6
commit e592c892cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ class WalletUnlockPageState extends AuthPageState<WalletUnlockPage> {
), ),
)) ))
: Container(), : Container(),
backgroundColor: Theme.of(context).backgroundColor, backgroundColor: Theme.of(context).colorScheme.background,
border: null), border: null),
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
body: Center( body: Center(
@ -165,7 +165,7 @@ class WalletUnlockPageState extends AuthPageState<WalletUnlockPage> {
style: TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).primaryTextTheme.headline6!.color!)), color: Theme.of(context).primaryTextTheme.titleLarge!.color!)),
SizedBox(height: 24), SizedBox(height: 24),
Form( Form(
child: TextFormField( child: TextFormField(
@ -176,25 +176,25 @@ class WalletUnlockPageState extends AuthPageState<WalletUnlockPage> {
style: TextStyle( style: TextStyle(
fontSize: 20.0, fontSize: 20.0,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Theme.of(context).primaryTextTheme!.headline6!.color!), color: Theme.of(context).primaryTextTheme.titleLarge!.color!),
decoration: InputDecoration( decoration: InputDecoration(
hintStyle: TextStyle( hintStyle: TextStyle(
fontSize: 18.0, fontSize: 18.0,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Theme.of(context).accentTextTheme!.headline2!.color!), color: Theme.of(context).accentTextTheme.displayMedium!.color!),
hintText: S.of(context).enter_wallet_password, hintText: S.of(context).enter_wallet_password,
focusedBorder: UnderlineInputBorder( focusedBorder: UnderlineInputBorder(
borderSide: BorderSide( borderSide: BorderSide(
color: Theme.of(context) color: Theme.of(context)
.accentTextTheme! .accentTextTheme
.headline2! .displayMedium!
.decorationColor!, .decorationColor!,
width: 1.0)), width: 1.0)),
enabledBorder: UnderlineInputBorder( enabledBorder: UnderlineInputBorder(
borderSide: BorderSide( borderSide: BorderSide(
color: Theme.of(context) color: Theme.of(context)
.accentTextTheme! .accentTextTheme
.headline2! .displayMedium!
.decorationColor!, .decorationColor!,
width: 1.0), width: 1.0),
) )