Skip to content

Guoxiangrui/feature/home cmp#583

Merged
985892345 merged 4 commits into
developfrom
guoxiangrui/feature/home_cmp
Jun 20, 2026
Merged

Guoxiangrui/feature/home cmp#583
985892345 merged 4 commits into
developfrom
guoxiangrui/feature/home_cmp

Conversation

@985892345

Copy link
Copy Markdown
Member

No description provided.

将 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 切换内容)。
@985892345 985892345 merged commit 7c2db83 into develop Jun 20, 2026
2 checks passed
@985892345 985892345 deleted the guoxiangrui/feature/home_cmp branch June 20, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant