From beffff8175a93c8be82e2fdb3b0f55a66e4d2d34 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Mon, 11 Dec 2023 15:30:04 +0100 Subject: [PATCH] chore(app): clean up code and add space to last onboarding button --- app/lib/onboarding/pages/onboarding.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/lib/onboarding/pages/onboarding.dart b/app/lib/onboarding/pages/onboarding.dart index 826fb3ae..158cdffa 100644 --- a/app/lib/onboarding/pages/onboarding.dart +++ b/app/lib/onboarding/pages/onboarding.dart @@ -90,7 +90,8 @@ class OnboardingPage extends HookWidget { ), ), if (isRevisiting) Positioned( - top: MediaQuery.of(context).padding.top + PharMeTheme.mediumToLargeSpace, + top: MediaQuery.of(context).padding.top + + PharMeTheme.mediumToLargeSpace, right: PharMeTheme.mediumToLargeSpace, child: IconButton( icon: Icon(Icons.close, size: 32, color: Colors.white,), @@ -155,10 +156,7 @@ class OnboardingPage extends HookWidget { bool isLastPage, ) { final buttonStyle = isLastPage - ? ElevatedButton.styleFrom( - backgroundColor: Colors.white, - // shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)) - ) + ? ElevatedButton.styleFrom(backgroundColor: Colors.white) : null; final textColor = isLastPage ? PharMeTheme.onSurfaceText @@ -189,6 +187,7 @@ class OnboardingPage extends HookWidget { mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ + SizedBox(width: 8), Text( isLastPage ? isRevisiting