fix(player): 修复进度条拖动树稳定性

This commit is contained in:
Zhou Weidong committed 2026-10-22 20:26:58 +08:00
1 parent 5af6caea6e
commit cf6d12b7c8
6 files changed
+216 -23

No files matched your search

+2 -1
View File
@@ -1192,4 +1192,5 @@ $ flutter test
- Slider 不再在 `onChangeStart` 清屏;首次真实移动后才进入 scrub,轨道 2/6、thumb 6/8。
- 推荐流拖动使用独立 opaque 手势与 pointer 兜底,end/cancel 同时恢复浮层和轨道。
- `flutter test test/player/seek_scrub_visibility_test.dart`:tap、首次移动、松手恢复 3 项测试全部通过。
- 推荐浮层改为 AnimatedOpacity + IgnorePointer,进度条节点始终留在树中;scrub setState 均加 mounted 守卫。
- `flutter test test/player/seek_scrub_visibility_test.dart`:6 项测试全部通过。