Repository navigation
Fix/locate button size - #49
Merged
Merged
Conversation
Linecos
approved these changes
Nov 5, 2026
Linecos
force-pushed
the
fix/locate-button-size
branch
from
November 5, 2026 04:43
7ce54f9 to
cf3643d
Compare
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.
改了什么
去掉音乐页右下角的定位悬浮按钮,改为长按播放岛的播放/暂停键定位正在播放的曲目(约 0.5 秒)。单击行为不变,仍是播放/暂停。
为什么
悬浮按钮始终浮在列表内容之上,无论贴右边缘还是左移,窗口宽度一变就会压到行尾的时长或收藏图标。改成长按播放键后不再占用任何列表空间。
影响范围
library_page.dart(移除按钮与定位入口)、player_bar.dart(播放键改为手写 InkWell 以同时承载 tap 与 longPress)自查
flutter analyze/dart format/flutter test(585 passed)通过InkWell.onTap)给 reviewer 的备注
IconButton.filled改为Material + InkWell:IconButton没有onLongPress参数,外层套GestureDetector会被它内部的 InkWell 抢走指针,只有把两个手势放进同一个 InkWell 才能生效_locateCurrentTrack内部处理