Skip to content

Instantly share code, notes, and snippets.

@haashem
Created October 14, 2022 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haashem/09cb4c227ec771c4bc52440402859491 to your computer and use it in GitHub Desktop.
Save haashem/09cb4c227ec771c4bc52440402859491 to your computer and use it in GitHub Desktop.
item tap
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