Skip to content

Commit e3bc506

Browse files
committed
fix(onboarding): adjust bottom button size
1 parent 1120dc4 commit e3bc506

1 file changed

Lines changed: 20 additions & 18 deletions

File tree

lib/presentation/onboarding/screens/onboarding_start_screen.dart

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,27 @@ class OnboardingStartScreen extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return Scaffold(
13-
body: Padding(
14-
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 35),
15-
child: Center(
16-
child: Column(
17-
children: [
18-
Expanded(
19-
child: Center(
20-
child: Column(
21-
mainAxisSize: MainAxisSize.min,
22-
children: [
23-
_Title(),
24-
SizedBox(height: 37),
25-
_OnboardingCharacterImage(),
26-
],
13+
body: SafeArea(
14+
child: Padding(
15+
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 35),
16+
child: Center(
17+
child: Column(
18+
children: [
19+
Expanded(
20+
child: Center(
21+
child: Column(
22+
mainAxisSize: MainAxisSize.min,
23+
children: [
24+
_Title(),
25+
SizedBox(height: 37),
26+
_OnboardingCharacterImage(),
27+
],
28+
),
2729
),
2830
),
29-
),
30-
_OnboardingStartButton(),
31-
],
31+
_OnboardingStartButton(),
32+
],
33+
),
3234
),
3335
),
3436
),
@@ -85,7 +87,7 @@ class _OnboardingStartButton extends StatelessWidget {
8587
context.push('/onboarding');
8688
},
8789
child: Padding(
88-
padding: const EdgeInsets.all(16.0),
90+
padding: const EdgeInsets.symmetric(horizontal: 16),
8991
child: Text(AppLocalizations.of(context)!.start),
9092
),
9193
),

0 commit comments

Comments
 (0)