Check out example codes for "flutter push route". It will help you in understanding the concepts better.

Code Example 1

// Within the `FirstRoute` widget
onPressed: () {
  Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => SecondRoute()),
  );
}

Learn ReactJs, React Native from akashmittal.com