@@ -19,55 +19,57 @@ class RecoverMethodPanel extends StatelessWidget {
19
19
final colorLvl0 = theme.colors.textOnPrimaryLevel0;
20
20
final colorLvl1 = theme.colors.textOnPrimaryLevel1;
21
21
22
- return SingleChildScrollView (
23
- child: Column (
24
- crossAxisAlignment: CrossAxisAlignment .stretch,
25
- children: [
26
- const SizedBox (height: 24 ),
27
- Text (
28
- context.l10n.recoverKeychainMethodsTitle,
29
- style: theme.textTheme.titleMedium? .copyWith (color: colorLvl1),
22
+ return Column (
23
+ crossAxisAlignment: CrossAxisAlignment .stretch,
24
+ children: [
25
+ const SizedBox (height: 24 ),
26
+ Text (
27
+ context.l10n.recoverKeychainMethodsTitle,
28
+ style: theme.textTheme.titleMedium? .copyWith (color: colorLvl1),
29
+ ),
30
+ const SizedBox (height: 12 ),
31
+ _BlocOnDeviceKeychains (onUnlockTap: _unlockKeychain),
32
+ const SizedBox (height: 12 ),
33
+ Text (
34
+ context.l10n.recoverKeychainMethodsSubtitle,
35
+ style: theme.textTheme.bodyMedium? .copyWith (color: colorLvl1),
36
+ ),
37
+ const SizedBox (height: 32 ),
38
+ Text (
39
+ context.l10n.recoverKeychainMethodsListTitle,
40
+ style: theme.textTheme.titleSmall? .copyWith (color: colorLvl0),
41
+ ),
42
+ Padding (
43
+ padding: const EdgeInsets .symmetric (horizontal: 20 , vertical: 24 ),
44
+ child: Column (
45
+ mainAxisSize: MainAxisSize .min,
46
+ children: RegistrationRecoverMethod .values
47
+ .map <Widget >(
48
+ (method) {
49
+ return RegistrationTile (
50
+ key: ValueKey (method),
51
+ icon: method._icon,
52
+ title: method._getTitle (context.l10n),
53
+ subtitle: method._getSubtitle (context.l10n),
54
+ onTap: () {
55
+ switch (method) {
56
+ case RegistrationRecoverMethod .seedPhrase:
57
+ RegistrationCubit .of (context)
58
+ .recoverWithSeedPhrase ();
59
+ }
60
+ },
61
+ );
62
+ },
63
+ )
64
+ .separatedBy (const SizedBox (height: 12 ))
65
+ .toList (),
30
66
),
31
- const SizedBox (height: 12 ),
32
- _BlocOnDeviceKeychains (onUnlockTap: _unlockKeychain),
33
- const SizedBox (height: 12 ),
34
- Text (
35
- context.l10n.recoverKeychainMethodsSubtitle,
36
- style: theme.textTheme.bodyMedium? .copyWith (color: colorLvl1),
37
- ),
38
- const SizedBox (height: 32 ),
39
- Text (
40
- context.l10n.recoverKeychainMethodsListTitle,
41
- style: theme.textTheme.titleSmall? .copyWith (color: colorLvl0),
42
- ),
43
- Padding (
44
- padding: const EdgeInsets .symmetric (horizontal: 20 , vertical: 24 ),
45
- child: Column (
46
- mainAxisSize: MainAxisSize .min,
47
- children: RegistrationRecoverMethod .values
48
- .map <Widget >(
49
- (method) {
50
- return RegistrationTile (
51
- key: ValueKey (method),
52
- icon: method._icon,
53
- title: method._getTitle (context.l10n),
54
- subtitle: method._getSubtitle (context.l10n),
55
- onTap: () {
56
- switch (method) {
57
- case RegistrationRecoverMethod .seedPhrase:
58
- RegistrationCubit .of (context)
59
- .recoverWithSeedPhrase ();
60
- }
61
- },
62
- );
63
- },
64
- )
65
- .separatedBy (const SizedBox (height: 12 ))
66
- .toList (),
67
- ),
68
- ),
69
- ],
70
- ),
67
+ ),
68
+ const Spacer (),
69
+ VoicesBackButton (
70
+ onTap: () => RegistrationCubit .of (context).previousStep (),
71
+ ),
72
+ ],
71
73
);
72
74
}
73
75
0 commit comments