Skip to content

Commit 5b41d88

Browse files
committed
Fix overflow on location consent page
1 parent 7bd73ee commit 5b41d88

File tree

1 file changed

+32
-27
lines changed

1 file changed

+32
-27
lines changed

lib/features/onboarding/presentation/pages/location_consent_page.dart

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,43 @@ class LocationConsentPage extends StatelessWidget {
2626
child: Column(
2727
crossAxisAlignment: CrossAxisAlignment.start,
2828
children: [
29-
// Top text section
30-
Text(
31-
MyLocalizations.of(context, 'tutorial_title_13'),
32-
style: TextStyle(
33-
fontSize: 20,
34-
fontWeight: FontWeight.bold,
35-
color: theme.primaryColorDark,
36-
),
37-
),
38-
const SizedBox(height: 16),
39-
Text(
40-
MyLocalizations.of(context, 'tutorial_info_13'),
41-
style: TextStyle(
42-
fontSize: 16,
43-
color: theme.textTheme.bodyMedium?.color,
44-
),
45-
),
46-
const SizedBox(height: 16),
47-
48-
// Expanded image fills remaining space
4929
Expanded(
50-
child: Center(
51-
child: Image.asset(
52-
'assets/img/location/grid_aid.png',
53-
width: MediaQuery.of(context).size.width * 0.8,
54-
fit: BoxFit.contain,
30+
child: SingleChildScrollView(
31+
child: Column(
32+
crossAxisAlignment: CrossAxisAlignment.start,
33+
children: [
34+
// Top text section
35+
Text(
36+
MyLocalizations.of(context, 'tutorial_title_13'),
37+
style: TextStyle(
38+
fontSize: 20,
39+
fontWeight: FontWeight.bold,
40+
color: theme.primaryColorDark,
41+
),
42+
),
43+
const SizedBox(height: 16),
44+
Text(
45+
MyLocalizations.of(context, 'tutorial_info_13'),
46+
style: TextStyle(
47+
fontSize: 16,
48+
color: theme.textTheme.bodyMedium?.color,
49+
),
50+
),
51+
const SizedBox(height: 16),
52+
53+
Center(
54+
child: Image.asset(
55+
'assets/img/location/grid_aid.png',
56+
width: MediaQuery.of(context).size.width * 0.8,
57+
fit: BoxFit.contain,
58+
),
59+
),
60+
const SizedBox(height: 24),
61+
],
5562
),
5663
),
5764
),
5865

59-
const SizedBox(height: 24),
60-
6166
// Fixed bottom buttons
6267
Row(
6368
children: [

0 commit comments

Comments
 (0)