Merge pull request #25 from Manty-K/master

fix : intro_screen next button clickable
This commit is contained in:
Shawn 2022-09-12 19:35:38 -06:00 committed by GitHub
commit abaebdbdba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,9 +31,11 @@ class _IntroScreenState extends State<IntroScreen> {
} }
void _handleIntroCompletePressed() { void _handleIntroCompletePressed() {
if (_currentPage.value == pageData.length - 1) {
context.go(ScreenPaths.home); context.go(ScreenPaths.home);
settingsLogic.hasCompletedOnboarding.value = true; settingsLogic.hasCompletedOnboarding.value = true;
} }
}
void _handlePageChanged() { void _handlePageChanged() {
int newPage = _pageController.page?.round() ?? 0; int newPage = _pageController.page?.round() ?? 0;