flutter page router from side code example
Example 1: Flutter Navigator to new page
// Within the `FirstRoute` widget
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => SecondRoute()),
);
}
Example 2: slide page transition flutter
dependencies:
page_transition: "^1.1.6"