Update wallet_restore_page.dart (#1178)
Serhii committed
Nov 15, 2023 at 21:04 UTC
4cffc8d4c503ab1bbb6d92f8162222bd5f2ef27d
1 file changed
+28
-16
lib/src/screens/restore/wallet_restore_page.dart
+28
-16
@@ -196,23 +196,35 @@ class WalletRestorePage extends BasePage {
196
),
197
Padding(
198
padding: EdgeInsets.only(top: 20, bottom: 24, left: 24, right: 24),
199
- child: Observer(
200
- builder: (context) {
201
- return LoadingPrimaryButton(
202
- onPressed: () async {
203
- await _confirmForm(context);
199
+ child: Column(
200
+ children: [
201
+ Observer(
202
+ builder: (context) {
203
+ return LoadingPrimaryButton(
204
+ onPressed: () async {
205
+ await _confirmForm(context);
206
+ },
207
+ text: S.of(context).restore_recover,
208
+ color: Theme.of(context)
209
+ .extension<WalletListTheme>()!
210
+ .createNewWalletButtonBackgroundColor,
211
+ textColor: Theme.of(context)
212
+ .extension<WalletListTheme>()!
213
+ .restoreWalletButtonTextColor,
214
+ isLoading: walletRestoreViewModel.state is IsExecutingState,
215
+ isDisabled: !walletRestoreViewModel.isButtonEnabled,
216
+ );
217
},
205
- text: S.of(context).restore_recover,
206
- color: Theme.of(context)
207
- .extension<WalletListTheme>()!
208
- .createNewWalletButtonBackgroundColor,
209
- textColor: Theme.of(context)
210
- .extension<WalletListTheme>()!
211
- .restoreWalletButtonTextColor,
212
- isLoading: walletRestoreViewModel.state is IsExecutingState,
213
- isDisabled: !walletRestoreViewModel.isButtonEnabled,
214
- );
215
- },
218
+ ),
219
+ const SizedBox(height: 25),
220
+ GestureDetector(
221
+ onTap: () {
222
+ Navigator.of(context)
223
+ .pushNamed(Routes.advancedPrivacySettings, arguments: walletRestoreViewModel.type);
224
+ },
225
+ child: Text(S.of(context).advanced_privacy_settings),
226
+ ),
227
+ ],
228
),
229
)
230
],