mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-19 07:09:14 +00:00
fix(ui): Onboarding views getting out of safe area
This commit is contained in:
parent
ef743302cd
commit
2e70f26617
|
@ -22,30 +22,32 @@ class OnboardingView extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(final BuildContext context) => Scaffold(
|
||||
body: Align(
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 480),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
primary: true,
|
||||
shrinkWrap: true,
|
||||
padding: const EdgeInsets.all(15) +
|
||||
const EdgeInsets.only(top: 15),
|
||||
children: children,
|
||||
body: SafeArea(
|
||||
child: Align(
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 480),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
primary: true,
|
||||
shrinkWrap: true,
|
||||
padding: const EdgeInsets.all(15) +
|
||||
const EdgeInsets.only(top: 15),
|
||||
children: children,
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15) +
|
||||
const EdgeInsets.only(bottom: 30),
|
||||
child: SPBrandButton.text(
|
||||
title: buttonTitle.tr(),
|
||||
onPressed: onProceed,
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15) +
|
||||
const EdgeInsets.only(bottom: 30),
|
||||
child: SPBrandButton.text(
|
||||
title: buttonTitle.tr(),
|
||||
onPressed: onProceed,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue