Answers for "flutter back"

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
0

flutter go back

Navigator.pop(context);
Posted by: Guest on September-27-2020

Browse Popular Code Answers by Language