fix : intro_screen next button clickable

This commit is contained in:
Manthan Khandale 2022-09-10 14:15:24 +05:30
parent b1f0bed1cc
commit e2706434fd

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;