ui(player): add dynamic animations for speed/brightness and adaptive volume icons#1754
Open
yasz1234 wants to merge 1 commit intoPredidit:mainfrom
Open
ui(player): add dynamic animations for speed/brightness and adaptive volume icons#1754yasz1234 wants to merge 1 commit intoPredidit:mainfrom
yasz1234 wants to merge 1 commit intoPredidit:mainfrom
Conversation
Owner
|
我对AI实现的PR没有意见,但是需要符合当前项目架构 在页面中直接引入 dart:math 进行动画曲线计算很不干净,这应该被封装为独立的 widget,暴露适当的属性,并放置在 /lib/bean/widget 目录下 |
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.
优化播放器控制面板交互视觉反馈
起因:
交互反馈单一:原播放器在调节音量和亮度以及长按进行倍速播放时,顶部提示框仅有静态图标,缺乏直观的动态反馈,视觉体验较为生硬。
改进方案:
playerController.volume百分比实时映射四种状态:静音 (volume_off)、低音量 (volume_mute)、中音量 (volume_down)、高音量 (volume_up)。Transform.rotate包装亮度图标,将brightness线性值(0.0 - 1.0)映射至旋转弧度(0 - 2π),实现图标随滑动实时旋转的物理感反馈。_buildFlowingArrows动画组件,通过AnimationController驱动math.sin改变双箭头的透明度与位移,在倍速播放时提供持续的动效引导。