Created
October 14, 2022 08:25
-
-
Save haashem/09cb4c227ec771c4bc52440402859491 to your computer and use it in GitHub Desktop.
item tap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void onItemTapped(int index) { | |
_selectedIndex = index; | |
switch (index) { | |
case 0: | |
context.goNamed(Routes.signInAndSecurity.name); | |
break; | |
case 1: | |
context.goNamed(Routes.personalInformation.name); | |
break; | |
case 2: | |
context.goNamed(Routes.paymentMethods.name); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment