跳转到某一页
Navigator.push(context, MaterialPageRoute(builder: (context) {
return new TestTimeOut(
);
}));
返回上一页
Navigator.pop(context);
返回上10页
for(int i=0; i<10; i++){
Navigator.pop(context);
}
跳转到某一页
Navigator.push(context, MaterialPageRoute(builder: (context) {
return new TestTimeOut(
);
}));
返回上一页
Navigator.pop(context);
返回上10页
for(int i=0; i<10; i++){
Navigator.pop(context);
}