简体   繁体   English

Jetpack compose - 使用 1.0.0-alpha02 嵌套导航

[英]Jetpack compose - nested navigation with 1.0.0-alpha02

After navigation-compose 1.0.0-alpha01 is released, I tried to play with nested navigation in conjunction with bottom navigation bar.在 navigation-compose 1.0.0-alpha01 发布后,我尝试将嵌套导航与底部导航栏结合使用。 It allows to switch between tabs and enter to nested screens with saving tabs state even after screen rotation即使在屏幕旋转后,它也允许在选项卡之间切换并进入嵌套屏幕并保存选项卡状态

https://github.com/ochkarik05/try-compose https://github.com/ochkarik05/try-compose

After updating compose to 1.0.0-alpha07 and navigation-compose to 1.0.0-alpha02, everything stopped working after screen rotation, for example, back button has no effect.将compose更新为1.0.0-alpha07并将navigation-compose更新为1.0.0-alpha02后,屏幕旋转后一切都停止工作,例如后退按钮无效。 Broken branch are here:破碎的分支在这里:

https://github.com/ochkarik05/try-compose/tree/feature/update_libs https://github.com/ochkarik05/try-compose/tree/feature/update_libs

Now I can not find how to fix it.现在我找不到如何解决它。

I ran into the same issue as well, and confirmed that downgrading from nav alpha02 to alpha01 fixes the issue.我也遇到了同样的问题,并确认从导航alpha02降级到alpha01解决了这个问题。

I logged https://issuetracker.google.com/issues/173563115 since it seems to be a bug within the library itself.我登录了https://issuetracker.google.com/issues/173563115,因为它似乎是库本身的一个错误。 You should be able to turn on notifications for that ticket to receive any updates.您应该能够打开该票证的通知以接收任何更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OutlineTextField 、TextField 在 Jetpack Compose 1.0.0-alpha02 中不起作用 - OutlineTextField , TextField not working in Jetpack Compose 1.0.0-alpha02 将WorkManager从1.0.0-alpha02升级到1.0.0-alpha03时出现运行时异常 - Runtime exception when upgrading WorkManager from 1.0.0-alpha02 to 1.0.0-alpha03 Jetpack 撰写“文本”function 已弃用 (1.0.0-alpha09) - Jetpack compose “Text” function deprecated (1.0.0-alpha09) 升级到带有 Kotlin 1.4.30 错误的 Jetpack Compose 1.0.0-alpha12 - Upgrading to Jetpack Compose 1.0.0-alpha12 with Kotlin 1.4.30 error Jetpack Compose 嵌套导航和 BottomAppBar - Jetpack Compose nested navigation and BottomAppBar Jetpack Compose + Navigation - 使用 BottomNavBar 的嵌套导航 - Jetpack Compose + Navigation - Nested navigation with BottomNavBar 将参数传递给 Jetpack Compose 中的嵌套导航图 - Pass an argument to a nested navigation graph in Jetpack Compose 使用 Jetpack Compose 1.0.0-alpha11 时如何手动导入扩展函数? - How to manually import extension functions when using Jetpack Compose 1.0.0-alpha11? Jetpack Compose - 如果有嵌套导航,则不选择底部导航图标 - Jetpack Compose - Bottom navigation icon is not selected if it has nested navigation Jetpack Compose Navigation:直接导航以在不是 startDestination 的嵌套图中路由 - Jetpack Compose Navigation: Direct navigation to route in a nested graph which is not startDestination
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM