Answers for "flutter make new page on a button click"

16

how to open page with button flutter

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

Code answers related to "flutter make new page on a button click"

Browse Popular Code Answers by Language