difference between screens and avtivity in flutter android studio code example
Example: Flutter Navigator to new page
// Within the `FirstRoute` widget
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => SecondRoute()),
);
}