@@ -29,39 +29,41 @@ class _WidgetSheetContent extends StatelessWidget {
2929
3030 return SafeArea (
3131 top: false ,
32- child: Padding (
33- padding: const EdgeInsets .fromLTRB (16 , 0 , 16 , 16 ),
34- child: Column (
35- mainAxisSize: MainAxisSize .min,
36- crossAxisAlignment: CrossAxisAlignment .start,
37- children: [
38- Text (
39- 'add_lantern_widget' .i18n,
40- style: textTheme.headlineSmall! .copyWith (
41- color: context.textPrimary,
32+ child: SingleChildScrollView (
33+ child: Padding (
34+ padding: const EdgeInsets .fromLTRB (16 , 0 , 16 , 16 ),
35+ child: Column (
36+ mainAxisSize: MainAxisSize .min,
37+ crossAxisAlignment: CrossAxisAlignment .start,
38+ children: [
39+ Text (
40+ 'add_lantern_widget' .i18n,
41+ style: textTheme.headlineSmall! .copyWith (
42+ color: context.textPrimary,
43+ ),
4244 ),
43- ),
44- const SizedBox (height: 8 ),
45- Text (
46- 'add_lantern_widget_description' .i18n,
47- style: textTheme.bodyMedium! .copyWith (
48- color: context.textSecondary,
45+ const SizedBox (height: 8 ),
46+ Text (
47+ 'add_lantern_widget_description' .i18n,
48+ style: textTheme.bodyMedium! .copyWith (
49+ color: context.textSecondary,
50+ ),
51+ ),
52+ const SizedBox (height: 24 ),
53+ const _WidgetPreview (),
54+ const SizedBox (height: 24 ),
55+ for (var i = 0 ; i < steps.length; i++ ) ...[
56+ _StepRow (index: i + 1 , text: steps[i]),
57+ if (i < steps.length - 1 ) const SizedBox (height: 12 ),
58+ ],
59+ const SizedBox (height: 24 ),
60+ PrimaryButton (
61+ buttonKey: const Key ('widget_sheet.got_it' ),
62+ label: 'got_it' .i18n,
63+ onPressed: () => Navigator .of (context).pop (),
4964 ),
50- ),
51- const SizedBox (height: 24 ),
52- const _WidgetPreview (),
53- const SizedBox (height: 24 ),
54- for (var i = 0 ; i < steps.length; i++ ) ...[
55- _StepRow (index: i + 1 , text: steps[i]),
56- if (i < steps.length - 1 ) const SizedBox (height: 12 ),
5765 ],
58- const SizedBox (height: 24 ),
59- PrimaryButton (
60- buttonKey: const Key ('widget_sheet.got_it' ),
61- label: 'got_it' .i18n,
62- onPressed: () => Navigator .of (context).pop (),
63- ),
64- ],
66+ ),
6567 ),
6668 ),
6769 );
@@ -122,9 +124,7 @@ class _StepRow extends StatelessWidget {
122124 Expanded (
123125 child: Text (
124126 text,
125- style: textTheme.bodyMedium! .copyWith (
126- color: context.textPrimary,
127- ),
127+ style: textTheme.bodyMedium! .copyWith (color: context.textPrimary),
128128 ),
129129 ),
130130 ],
0 commit comments