Open michho8 opened 12 months ago
Use the following code for the onPressed property of buttons that are supposed to show a new screen. Replace NameOfPage with the page class name.
NameOfPage
onPressed: () { Navigator.push( context, CupertinoPageRoute(builder: (context) => const NameOfPage()), }
EDIT: use the Cupertino method for the screen body and the pop method for the top nav bar.
Use the following code for the onPressed property of buttons that are supposed to show a new screen. Replace
NameOfPage
with the page class name.EDIT: use the Cupertino method for the screen body and the pop method for the top nav bar.