Repository navigation
fix: 修复底栏播放方式菜单崩溃 - #307
Merged
Merged
Conversation
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.
底部播放栏是页面 Navigator 的兄弟节点,宽窗口下点击“播放方式”会使 PopupMenuButton 在查找 Navigator 时抛出异常,菜单无法打开。
将播放方式改为与倍速、音量一致的 MenuAnchor,使用底栏已有的 Overlay 展开四种播放方式。保留当前模式勾选、保存期间禁用和错误提示,点击菜单外区域只关闭菜单。
验证:全量 Dart 源码分析通过;方法日志检查 4077/4077;git diff --check 通过。按仓库约定未新增或运行回归测试。Flutter analyze 受本地精简 SDK 缺少 dev 目录影响,使用同 SDK 的 Dart 分析器完成源码检查。