ConnectUni / connectuni

ConnectUni is a mobile application designed for college students to connect with each other in group chats and events through similar interests and classes.
https://connectuni.github.io/
1 stars 0 forks source link

Establish routing between different pages using Cupertino and Pop for top navbar #32

Open michho8 opened 12 months ago

michho8 commented 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.

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.