Require pin code on backup and seed/view page (#844)

* Require pin code on backup and seedview page * Require pin code on backup and seedview page

Godwin Asuquo committed Mar 23, 2023 at 18:18 UTC 893a267de676cd6ec272828cc67f9d2cbb847909
1 file changed +12 -16
lib/src/screens/settings/security_backup_page.dart
+12 -16
@@ -27,26 +27,22 @@ class SecurityBackupPage extends BasePage {
27 child: Column(mainAxisSize: MainAxisSize.min, children: [
28 SettingsCellWithArrow(
29 title: S.current.show_keys,
30 - handler: (_) => _securitySettingsViewModel.checkPinCodeRiquired()
31 - ? Navigator.of(context).pushNamed(Routes.auth,
32 - arguments: (bool isAuthenticatedSuccessfully, AuthPageState auth) {
33 - if (isAuthenticatedSuccessfully) {
34 - auth.close(route: Routes.showKeys);
35 - }
36 - })
37 - : Navigator.of(context).pushNamed(Routes.showKeys),
30 + handler: (_) => Navigator.of(context).pushNamed(Routes.auth,
31 + arguments: (bool isAuthenticatedSuccessfully, AuthPageState auth) {
32 + if (isAuthenticatedSuccessfully) {
33 + auth.close(route: Routes.showKeys);
34 + }
35 + }),
36 ),
37 StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
38 SettingsCellWithArrow(
39 title: S.current.create_backup,
42 - handler: (_) => _securitySettingsViewModel.checkPinCodeRiquired()
43 - ? Navigator.of(context).pushNamed(Routes.auth,
44 - arguments: (bool isAuthenticatedSuccessfully, AuthPageState auth) {
45 - if (isAuthenticatedSuccessfully) {
46 - auth.close(route: Routes.backup);
47 - }
48 - })
49 - : Navigator.of(context).pushNamed(Routes.backup),
40 + handler: (_) => Navigator.of(context).pushNamed(Routes.auth,
41 + arguments: (bool isAuthenticatedSuccessfully, AuthPageState auth) {
42 + if (isAuthenticatedSuccessfully) {
43 + auth.close(route: Routes.backup);
44 + }
45 + }),
46 ),
47 StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
48 SettingsCellWithArrow(