颤抖如何导航回特定页面 [英] Flutter how to navigate back to a particular page

查看:48
本文介绍了颤抖如何导航回特定页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个页面的应用程序,根据用户选择,某些页面会被跳过.

I have an app with multiple page where some pages are skip depending on the user selection..

例如,我有以下页面details.dart

for example, I have the following pages details.dart

contact.dart

contact.dart

address.dart

address.dart

code.dart

code.dart

summary.dart

summary.dart

我想从上述任何页面中转到另一页.但是,我想先检查一下它们是否在堆栈中,然后弹出.否则将该页面推入堆栈

I would like to go to another page from any of the above pages..However, I want first check see if they are in the stack and then pop to it . Otherwise push that page onto the stack

如何在Flutter中做到这一点

How do I do this in Flutter

推荐答案

只需使用多个 Navigator.pop

这篇关于颤抖如何导航回特定页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆