Guoxiangrui/feature/home cmp#583
Merged
Merged
Conversation
将 BottomSheetState 的 expand/collapse/hide 拆成 *Async(fire-and-forget,发命令到 commandFlow)与 *Suspend(挂起等待动画结束)两套 API: - 命令通道用 StateFlow 去重 + 处理后复位 null 的消费语义: - 去重:连续相同命令(如疯狂点击展开)只触发一次; - 消费:处理后复位为 null,避免「展开→手动拖拽折叠→再次展开」时第二条命令被吞; - collector 挂在 BottomSheetCompose 而非 rememberBottomSheetState,使外部传入的 state(map VM、course frame、schoolcar 等)也生效。 - 业务侧按需替换为 Async(回调/事件 fire-and-forget)或 Suspend(需等待动画完成:Scene 出栈 hide、课程弹窗 expand、校车 sheet 切换内容)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.