diff --git a/lib/views/create_wallet.dart b/lib/views/create_wallet.dart index 8cc76d6..4f6ea35 100644 --- a/lib/views/create_wallet.dart +++ b/lib/views/create_wallet.dart @@ -115,7 +115,7 @@ class CreateWallet extends AbstractView { text: L.next, icon: null, onPressed: () => _next(context), - backgroundColor: const MaterialStatePropertyAll(Colors.green), + backgroundColor: const WidgetStatePropertyAll(Colors.green), textColor: Colors.white, ), LongPrimaryButton( @@ -124,7 +124,7 @@ class CreateWallet extends AbstractView { onPressed: () { viewModel.toggleAdvancedOptions(); }, // TODO: passphrase - backgroundColor: const MaterialStatePropertyAll(Colors.transparent), + backgroundColor: const WidgetStatePropertyAll(Colors.transparent), ), const SizedBox(height: 16), ], diff --git a/lib/views/initial_setup_screen.dart b/lib/views/initial_setup_screen.dart index f338205..243c326 100644 --- a/lib/views/initial_setup_screen.dart +++ b/lib/views/initial_setup_screen.dart @@ -75,8 +75,8 @@ class LongSecondaryButton extends LongPrimaryButton { required super.onPressed}); @override - MaterialStateProperty? get backgroundColor => - const MaterialStatePropertyAll(Colors.white); + WidgetStateProperty? get backgroundColor => + const WidgetStatePropertyAll(Colors.white); @override Color get textColor => onBackgroundColor; @@ -96,7 +96,7 @@ class LongPrimaryButton extends StatelessWidget { }); final padding; - final MaterialStateProperty? backgroundColor; + final WidgetStateProperty? backgroundColor; final Color textColor; final String text; @@ -114,8 +114,8 @@ class LongPrimaryButton extends StatelessWidget { child: ElevatedButton.icon( style: Theme.of(context).elevatedButtonTheme.style?.copyWith( backgroundColor: backgroundColor, - elevation: const MaterialStatePropertyAll(0), - side: const MaterialStatePropertyAll( + elevation: const WidgetStatePropertyAll(0), + side: const WidgetStatePropertyAll( BorderSide( width: 0, color: Colors.transparent, diff --git a/lib/views/new_wallet_info.dart b/lib/views/new_wallet_info.dart index 3823413..59660cf 100644 --- a/lib/views/new_wallet_info.dart +++ b/lib/views/new_wallet_info.dart @@ -65,7 +65,7 @@ class NewWalletInfoScreen extends AbstractView { textWidget: action.text, icon: null, onPressed: callback, - backgroundColor: MaterialStatePropertyAll(action.backgroundColor), + backgroundColor: WidgetStatePropertyAll(action.backgroundColor), width: null, ), ); diff --git a/lib/views/wallet_edit.dart b/lib/views/wallet_edit.dart index 4ac3475..e93bbf5 100644 --- a/lib/views/wallet_edit.dart +++ b/lib/views/wallet_edit.dart @@ -35,7 +35,7 @@ class WalletEdit extends AbstractView { children: [ Expanded( child: LongPrimaryButton( - backgroundColor: const MaterialStatePropertyAll(Colors.red), + backgroundColor: const WidgetStatePropertyAll(Colors.red), icon: null, onPressed: () { callThrowable( diff --git a/lib/views/widgets/drawer_element.dart b/lib/views/widgets/drawer_element.dart index 386dd0a..4d96970 100644 --- a/lib/views/widgets/drawer_element.dart +++ b/lib/views/widgets/drawer_element.dart @@ -27,8 +27,8 @@ class DrawerElement extends StatelessWidget { margin: const EdgeInsets.only(top: 5, left: 20, bottom: 5), child: TextButton( style: ButtonStyle( - backgroundColor: MaterialStateProperty.all(Colors.black12), - shape: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all(Colors.black12), + shape: WidgetStateProperty.all( const RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(20),