Skip to content

Instantly share code, notes, and snippets.

@haashem
Last active October 13, 2022 09:48
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/1c547d60ec2b981209281c272dd02030 to your computer and use it in GitHub Desktop.
Save haashem/1c547d60ec2b981209281c272dd02030 to your computer and use it in GitHub Desktop.
Side Menu OnPressed
SideMenu(
selectedIndex: _selectedIndex,
onPressed: ((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