Changed background and text colors of confirm buttons on disclaimer and restore wallet screens.
M committed
Oct 26, 2020 at 11:58 UTC
44e55f0bc4a19d8699f4caea2d69b4a1ee42172b
3 files changed
+24
-11
lib/src/screens/disclaimer/disclaimer_page.dart
+13
-8
@@ -305,14 +305,19 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
305
Container(
306
padding: EdgeInsets.only(left: 24.0, right: 24.0, bottom: 24.0),
307
child: PrimaryButton(
308
- onPressed: _checked
309
- ? () =>
310
- Navigator.of(context).popAndPushNamed(Routes.welcome)
311
- : null,
312
- text: 'Accept',
313
- color: Colors.green,
314
- textColor: Colors.white,
315
- ),
308
+ onPressed: _checked
309
+ ? () =>
310
+ Navigator.of(context).popAndPushNamed(Routes.welcome)
311
+ : null,
312
+ text: 'Accept',
313
+ color: Theme.of(context)
314
+ .accentTextTheme
315
+ .subtitle
316
+ .decorationColor,
317
+ textColor: Theme.of(context)
318
+ .accentTextTheme
319
+ .headline
320
+ .decorationColor),
321
),
322
],
323
],
lib/src/screens/restore/wallet_restore_page.dart
+10
-2
@@ -103,8 +103,16 @@ class WalletRestorePage extends BasePage {
103
onPressed: () =>
104
walletRestoreViewModel.create(options: _credentials()),
105
text: S.of(context).restore_recover,
106
- color: Colors.green,
107
- textColor: Colors.white,
106
+ color: Theme
107
+ .of(context)
108
+ .accentTextTheme
109
+ .subtitle
110
+ .decorationColor,
111
+ textColor: Theme
112
+ .of(context)
113
+ .accentTextTheme
114
+ .headline
115
+ .decorationColor,
116
isLoading: walletRestoreViewModel.state is IsExecutingState);
117
},
118
))
pubspec.lock
+1
-1
@@ -645,7 +645,7 @@ packages:
645
name: path_provider
646
url: "https://pub.dartlang.org"
647
source: hosted
648
- version: "1.6.21"
648
+ version: "1.6.22"
649
path_provider_linux:
650
dependency: transitive
651
description: