@@ -53,53 +53,106 @@ class _BackupWarningBlockerState extends State<_BackupWarningBlocker> {
5353 child: Align (
5454 alignment: Alignment .bottomCenter,
5555 child: SafeArea (
56- child: Container (
57- padding: const EdgeInsets .all (24 ),
58- decoration: BoxDecoration (
59- color: context.appColors.surface,
60- borderRadius: const BorderRadius .vertical (
61- top: Radius .circular (16 ),
62- ),
56+ child: ConstrainedBox (
57+ constraints: BoxConstraints (
58+ maxHeight: MediaQuery .sizeOf (context).height * 0.85 ,
6359 ),
64- child: Column (
65- mainAxisSize: MainAxisSize .min,
66- crossAxisAlignment: CrossAxisAlignment .stretch,
67- children: [
68- BBText (
69- context.loc.backupWarningTitle,
70- style: context.font.headlineMedium,
71- color: context.appColors.onSurface,
72- ),
73- const Gap (16 ),
74- BBText (
75- context.loc.backupWarningDescription,
76- style: context.font.bodyMedium,
77- color: context.appColors.onSurface,
78- ),
79- const Gap (24 ),
80- BBButton .big (
81- label: context.loc.backupWarningBackupNow,
82- onPressed: () {
83- context.pushNamed (
84- BackupSettingsSubroute .backupOptions.name,
85- );
86- },
87- bgColor: context.appColors.onSurface,
88- textColor: context.appColors.surface,
60+ child: Container (
61+ padding: const EdgeInsets .all (24 ),
62+ decoration: BoxDecoration (
63+ color: context.appColors.surface,
64+ borderRadius: const BorderRadius .vertical (
65+ top: Radius .circular (16 ),
8966 ),
90- const Gap (12 ),
91- BBButton .big (
92- label: context.loc.backupWarningBackupLater,
93- onPressed: () {
94- context
95- .read <WalletBloc >()
96- .add (const DismissBackupWarning ());
97- },
98- bgColor: context.appColors.surface,
99- textColor: context.appColors.onSurface,
100- outlined: true ,
101- ),
102- ],
67+ ),
68+ child: Column (
69+ mainAxisSize: MainAxisSize .min,
70+ crossAxisAlignment: CrossAxisAlignment .stretch,
71+ children: [
72+ Flexible (
73+ child: SingleChildScrollView (
74+ child: Column (
75+ mainAxisSize: MainAxisSize .min,
76+ crossAxisAlignment: CrossAxisAlignment .stretch,
77+ children: [
78+ BBText (
79+ context.loc.backupWarningTitle,
80+ style: context.font.headlineMedium? .copyWith (
81+ fontWeight: FontWeight .bold,
82+ ),
83+ color: context.appColors.onSurface,
84+ ),
85+ const Gap (16 ),
86+ BBText (
87+ context.loc.backupWarningDescription,
88+ style: context.font.bodyMedium,
89+ color: context.appColors.onSurface,
90+ ),
91+ const Gap (8 ),
92+ for (final reason in [
93+ context.loc.backupWarningLoseReasonLostPhone,
94+ context.loc.backupWarningLoseReasonDeletedApp,
95+ context.loc.backupWarningLoseReasonCriticalIssue,
96+ context.loc.backupWarningLoseReasonKeystore,
97+ context.loc.backupWarningLoseReasonCloudRestore,
98+ ])
99+ Padding (
100+ padding: const EdgeInsets .only (bottom: 6 ),
101+ child: Row (
102+ crossAxisAlignment: CrossAxisAlignment .start,
103+ children: [
104+ BBText (
105+ '• ' ,
106+ style: context.font.bodyMedium,
107+ color: context.appColors.onSurface,
108+ ),
109+ Expanded (
110+ child: BBText (
111+ reason,
112+ style: context.font.bodyMedium,
113+ color: context.appColors.onSurface,
114+ ),
115+ ),
116+ ],
117+ ),
118+ ),
119+ const Gap (8 ),
120+ BBText (
121+ context.loc.backupWarningNoRecovery,
122+ style: context.font.bodyMedium? .copyWith (
123+ fontWeight: FontWeight .bold,
124+ ),
125+ color: context.appColors.onSurface,
126+ ),
127+ ],
128+ ),
129+ ),
130+ ),
131+ const Gap (24 ),
132+ BBButton .big (
133+ label: context.loc.backupWarningBackupNow,
134+ onPressed: () {
135+ context.pushNamed (
136+ BackupSettingsSubroute .backupOptions.name,
137+ );
138+ },
139+ bgColor: context.appColors.onSurface,
140+ textColor: context.appColors.surface,
141+ ),
142+ const Gap (12 ),
143+ BBButton .big (
144+ label: context.loc.backupWarningBackupLater,
145+ onPressed: () {
146+ context
147+ .read <WalletBloc >()
148+ .add (const DismissBackupWarning ());
149+ },
150+ bgColor: context.appColors.surface,
151+ textColor: context.appColors.onSurface,
152+ outlined: true ,
153+ ),
154+ ],
155+ ),
103156 ),
104157 ),
105158 ),
0 commit comments