flutter 跳转

 flutter 跳转 不结束当前界面    

 Navigator.push(
                          this.context,
                          MaterialPageRoute(
                              builder: (BuildContext context) => Home()));

flutter 跳转 并结束当前界面

​
     Navigator.pushAndRemoveUntil(
                        this.context,
                        MaterialPageRoute(
                            builder: (BuildContext context) => Home()),
                        (route) => route == null,
                      );

​

 

你可能感兴趣的:(flutter,flutter)