From 2e70f26617bed2dbaaf40d3cedd3aa2a62e69e71 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Wed, 14 Aug 2024 04:46:38 +0300 Subject: [PATCH] fix(ui): Onboarding views getting out of safe area --- .../onboarding/views/onboarding_view.dart | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/lib/ui/pages/onboarding/views/onboarding_view.dart b/lib/ui/pages/onboarding/views/onboarding_view.dart index 6cf41b94..b36f3faf 100644 --- a/lib/ui/pages/onboarding/views/onboarding_view.dart +++ b/lib/ui/pages/onboarding/views/onboarding_view.dart @@ -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, + ), ), - ), - ], + ], + ), ), ), ),