We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SettingsScreen, 从 detailsPane 返回到 listPane 时, detailsPane 会立即消失屏幕变白, 过一会才会有 listDetail 进入动画.
问题是
animeko/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsScreen.kt
Lines 315 to 320 in 5f77b67
null
topLevel
删除 AnimatedContent 无法解决问题, 因为 currentDestination.contentKey 仍然会变为 null, 这只能让动画变为 snap, 效果应该更差.
AnimatedContent
currentDestination.contentKey
这可能是 Compose list detail navigator 的设计缺陷
No response
<450a1
The text was updated successfully, but these errors were encountered:
45c4d1f
No branches or pull requests
问题描述
SettingsScreen, 从 detailsPane 返回到 listPane 时, detailsPane 会立即消失屏幕变白, 过一会才会有 listDetail 进入动画.
问题是
animeko/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsScreen.kt
Lines 315 to 320 in 5f77b67
当返回 listPane 时, currentDestination.contentKey 会变为
null
(因为没有选中任何设置页), 触发这里 AnimatedContent 动画, 这里用的topLevel
动画是非常快速的 (200ms), 造成详情页立即消失了.删除
AnimatedContent
无法解决问题, 因为currentDestination.contentKey
仍然会变为null
, 这只能让动画变为 snap, 效果应该更差.这可能是 Compose list detail navigator 的设计缺陷
复现步骤
No response
Ani 版本号
<450a1
操作系统
No response
应用日志
No response
The text was updated successfully, but these errors were encountered: