使用Navigator.push

1
2
3
4
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ThePageYouWantToGo()),
);