Skip to content

Commit ab2ff5d

Browse files
committed
Update guide_screen.dart
1 parent eff43a7 commit ab2ff5d

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

app/lib/screens/guide_screen.dart

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,16 @@ class _GuideScreenState extends State<GuideScreen> {
144144
? AppLocalizations.of(context)!.getStarted
145145
: AppLocalizations.of(context)!.next,
146146
child: TextButton(
147-
onPressed: pages[_currentPage].isAuthPage
148-
? null
149-
: () {
150-
if (isLastPage) {
151-
_handleGuideCompletion(context);
152-
} else {
153-
_pageController.nextPage(
154-
duration: const Duration(milliseconds: 300),
155-
curve: Curves.easeInOut,
156-
);
157-
}
158-
},
147+
onPressed: () {
148+
if (isLastPage) {
149+
_handleGuideCompletion(context);
150+
} else {
151+
_pageController.nextPage(
152+
duration: const Duration(milliseconds: 300),
153+
curve: Curves.easeInOut,
154+
);
155+
}
156+
},
159157
child: Text(
160158
isLastPage
161159
? AppLocalizations.of(context)!.getStarted
@@ -222,15 +220,6 @@ List<GuidePage> buildGuidePages(
222220
{required BuildContext context, required bool isLoggedIn}) {
223221
final pages = <GuidePage>[];
224222

225-
if (!isLoggedIn) {
226-
pages.add(GuidePage(
227-
title: AppLocalizations.of(context)!.guideAccount,
228-
description: AppLocalizations.of(context)!.guideAccountDescription,
229-
icon: Icons.account_circle,
230-
isAuthPage: true,
231-
));
232-
}
233-
234223
pages.addAll([
235224
GuidePage(
236225
title: AppLocalizations.of(context)!.welcomeTitle,
@@ -269,6 +258,16 @@ List<GuidePage> buildGuidePages(
269258
);
270259
}
271260

261+
// Add account creation page last (if not logged in)
262+
if (!isLoggedIn) {
263+
pages.add(GuidePage(
264+
title: AppLocalizations.of(context)!.guideAccount,
265+
description: AppLocalizations.of(context)!.guideAccountDescription,
266+
icon: Icons.account_circle,
267+
isAuthPage: true,
268+
));
269+
}
270+
272271
return pages;
273272
}
274273

0 commit comments

Comments
 (0)