使用 go router 在 flutter 中实现持久导航栏和多个导航堆栈

发布于 2025-01-19 12:12:01 字数 91 浏览 2 评论 0原文

我需要帮助来弄清楚如何使用 go router 使用多个导航堆栈? 我需要一个持久的底部导航栏,并且在底部栏的每个页面内我需要使用 go router 的不同导航堆栈。

I need help to figure out how to use multiple navigation stacks using go router?
I need a persistent bottom nav bar, and inside every page of the bottom bar I need a different navigation stack using go router.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仙女 2025-01-26 12:12:01

这可能会有所帮助:
https://github.com/flutter/packages/pull/2650#pullrequestreview- 1144551916

目前我正在写这篇评论,已经支持嵌套导航,但是如果切换选项卡,内部导航器将无法维护其状态。

This might be helpful:
https://github.com/flutter/packages/pull/2650#pullrequestreview-1144551916

At the moment I'm writing this comment, nested navigation is already supported but if you switch tabs, inner navigators are not maintaining their state.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文