Skip to content

Instantly share code, notes, and snippets.

@LucasFebatis
Created November 22, 2022 04:02
Show Gist options
  • Save LucasFebatis/2e6193b20f04057e5276a210a8fce174 to your computer and use it in GitHub Desktop.
Save LucasFebatis/2e6193b20f04057e5276a210a8fce174 to your computer and use it in GitHub Desktop.
Chamando nova tela no Flutter
goToSuperHeroPage(SuperHero superHero) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SuperHeroPage(superHero: superHero)),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment