Answers for "return to the first route and push flutter"

16

flutter push route

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

Browse Popular Code Answers by Language