@@ -19,100 +19,91 @@ class ViewVaultKeyWarningBottomSheet extends StatelessWidget {
1919
2020 @override
2121 Widget build (BuildContext context) {
22- return Container (
23- constraints: BoxConstraints (
24- maxHeight: MediaQuery .of (context).size.height * 0.8 ,
25- ),
26- decoration: BoxDecoration (
27- color: context.appColors.onPrimary,
28- borderRadius: const BorderRadius .vertical (top: Radius .circular (32 )),
29- ),
30- child: Column (
31- mainAxisSize: .min,
32- crossAxisAlignment: .start,
33- children: [
34- Padding (
35- padding: const EdgeInsets .symmetric (horizontal: 24 , vertical: 10 ),
36- child: Column (
37- children: [
38- const Gap (20 ),
39- Row (
40- mainAxisAlignment: .spaceBetween,
41- children: [
42- const Gap (24 ),
43- BBText (
44- context.loc.backupSettingsSecurityWarning,
45- style: context.font.headlineMedium,
46- ),
47- GestureDetector (
48- onTap: () => Navigator .of (context).pop (false ),
49- child: const Icon (Icons .close),
50- ),
51- ],
52- ),
53- ],
54- ),
22+ return Column (
23+ mainAxisSize: .min,
24+ crossAxisAlignment: .start,
25+ children: [
26+ Padding (
27+ padding: const EdgeInsets .symmetric (horizontal: 24 , vertical: 10 ),
28+ child: Column (
29+ children: [
30+ const Gap (20 ),
31+ Row (
32+ mainAxisAlignment: .spaceBetween,
33+ children: [
34+ const Gap (24 ),
35+ BBText (
36+ context.loc.backupSettingsSecurityWarning,
37+ style: context.font.headlineMedium,
38+ ),
39+ GestureDetector (
40+ onTap: () => Navigator .of (context).pop (false ),
41+ child: const Icon (Icons .close),
42+ ),
43+ ],
44+ ),
45+ ],
5546 ),
56- Flexible (
57- child: SingleChildScrollView (
58- child: Padding (
59- padding: const EdgeInsets .all (24.0 ),
60- child: Column (
61- crossAxisAlignment: .start,
62- children: [
63- BBText (
64- context.loc.backupSettingsKeyWarningBold,
65- style: context.font.bodyMedium? .copyWith (
66- color: context.appColors.secondary,
67- fontWeight: .bold,
68- ),
69- maxLines: 4 ,
47+ ),
48+ Flexible (
49+ child: SingleChildScrollView (
50+ child: Padding (
51+ padding: const EdgeInsets .all (24.0 ),
52+ child: Column (
53+ crossAxisAlignment: .start,
54+ children: [
55+ BBText (
56+ context.loc.backupSettingsKeyWarningBold,
57+ style: context.font.bodyMedium? .copyWith (
58+ color: context.appColors.secondary,
59+ fontWeight: .bold,
7060 ),
71- const Gap (24 ),
72- BBText (
73- context.loc.backupSettingsKeyWarningMessage,
74- maxLines: 4 ,
75- style: context.font.bodyMedium,
76- ),
77- const Gap (16 ),
78- BBText (
79- context.loc.backupSettingsKeyWarningExample,
80- maxLines: 3 ,
81- style: context.font.bodyMedium,
82- ),
83- const Gap (32 ),
84- Row (
85- children: [
86- Expanded (
87- child: BBButton .big (
88- label: context.loc.cancelButton,
89- onPressed: () => Navigator .of (context).pop (false ),
90- bgColor: context.appColors.transparent,
91- outlined: true ,
92- textStyle: context.font.headlineLarge,
93- textColor: context.appColors.secondary,
94- ),
61+ maxLines: 4 ,
62+ ),
63+ const Gap (24 ),
64+ BBText (
65+ context.loc.backupSettingsKeyWarningMessage,
66+ maxLines: 4 ,
67+ style: context.font.bodyMedium,
68+ ),
69+ const Gap (16 ),
70+ BBText (
71+ context.loc.backupSettingsKeyWarningExample,
72+ maxLines: 3 ,
73+ style: context.font.bodyMedium,
74+ ),
75+ const Gap (32 ),
76+ Row (
77+ children: [
78+ Expanded (
79+ child: BBButton .big (
80+ label: context.loc.cancelButton,
81+ onPressed: () => Navigator .of (context).pop (false ),
82+ bgColor: context.appColors.transparent,
83+ outlined: true ,
84+ textStyle: context.font.headlineLarge,
85+ textColor: context.appColors.secondary,
9586 ),
96- const Gap ( 16 ),
97- Expanded (
98- child : BBButton . big (
99- label : context.loc.sendContinue,
100- onPressed : () => context.pop ( true ) ,
101- bgColor : context.appColors.secondary ,
102- textStyle : context.font.headlineLarge ,
103- textColor : context.appColors.onPrimary ,
104- ) ,
87+ ),
88+ const Gap ( 16 ),
89+ Expanded (
90+ child : BBButton . big (
91+ label : context.loc.sendContinue ,
92+ onPressed : () => context.pop ( true ) ,
93+ bgColor : context.appColors.secondary ,
94+ textStyle : context.font.headlineLarge ,
95+ textColor : context.appColors.onSecondary ,
10596 ),
106- ] ,
107- ) ,
108- const Gap ( 30 ),
109- ] ,
110- ) ,
97+ ) ,
98+ ] ,
99+ ),
100+ const Gap ( 30 ) ,
101+ ] ,
111102 ),
112103 ),
113104 ),
114- ] ,
115- ) ,
105+ ) ,
106+ ] ,
116107 );
117108 }
118109}
0 commit comments