flutter - 我的应用程序导航出现错误,同时移动到 2 个以上的屏幕?
问题描述
我的应用程序中的导航出现错误,同时移动到 2 个以上的屏幕,当我从 A 屏幕移动到 B 时,我从 B 移动到 C 屏幕,当我从 C 屏幕按回时,我来到屏幕 A,它应该来B,任何帮助将不胜感激
解决方案
You are missing the concepts of Push and Pop in Flutter when Navigating through pages.
You have to see this:
https://medium.com/flutter-community/flutter-push-pop-push-1bb718b13c31
推荐阅读
- javascript - aws - 如何获取 lambda - 节点 - 使用查询参数作为事件属性
- excel - Excel 2019 条件格式规则应用不一致
- android - 当 Android Q 中的 minifyEnabled = true 时,带有数据绑定的 LiveData 不起作用
- python-2.7 - kutils(在哪里可以找到这个特定的包)
- rest - 需要在 Spring HandlerInterceptor 的 afterCompletion 方法中从 HttpServletResponse 中获取实际的响应内容
- python - 使用 -1 语法时,Numpy `resize` 会给出意外的数组大小
- python - 如何修复 Pandas:IndexingError: Unalignable boolean Series 作为索引器提供
- reactjs - React Context 无法导入
- c - 如何在 C 中取消引用和调用结构的函数
- jquery - 如何使用 JQuery AJAX 和 CodeIgniter 将 JSON 插入 MySQL?