Answers for "flutter command to go to next page"

16

Flutter Navigator to new page

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

flutter pageview show next page

PageView(
  children: items,
  controller: PageController(
      viewportFraction: 0.8,
      initialPage: 0,
  )

)
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language