Answers for "how to navigate to a route and not pop flutter"

16

flutter navigate to new screen

// Within the `FirstRoute` widget
onPressed: () {
  Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => SecondRoute()),
  );
}
Posted by: Guest on March-25-2020

Code answers related to "how to navigate to a route and not pop flutter"

Browse Popular Code Answers by Language