Answers for "flutter button open new page"

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
0

open new page flutter

Navigator.of(context).push(MaterialPageRoute(builder: (context) => NewScreen()));
Posted by: Guest on June-05-2021

Code answers related to "flutter button open new page"

Browse Popular Code Answers by Language