Skip to content

Commit

Permalink
chore(app): clean up code and add space to last onboarding button
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Dec 11, 2023
1 parent 50f7649 commit beffff8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/lib/onboarding/pages/onboarding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -189,6 +187,7 @@ class OnboardingPage extends HookWidget {
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(width: 8),
Text(
isLastPage
? isRevisiting
Expand Down

0 comments on commit beffff8

Please sign in to comment.