Fix/toggle system bar - #143
Merged
Merged
Conversation
移除原有的 `StatusBar` 管理类,改用 `fullscreen.dart` 中的工具函数统一管理系统状态栏的显示与隐藏。 主要变更: - 移除 `lib/harmony_adapt/status_bar.dart`。 - 重构 `showSystemBar` 函数,支持传入 `reason` 参数用于调试日志打印。 - 在 `fullscreen.dart` 中新增 `toggleSystemBar` 函数,实现状态栏状态的切换。 - 更新视频播放器、图片查看器及视频详情页的调用逻辑,以适配新的工具函数。
调整 `_VideoDetailPageVState` 中 `childWhenDisabled` 的判断条件。 移除对 `isPortrait` 的依赖,改为根据 `videoDetailController` 的横屏状态或安全区域移除状态来决定是否隐藏系统状态栏,以确保在不同显示模式下状态栏行为的一致性。
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.
修复[Bug] 开启移除顶部的安全边距后, 若以竖屏模式进入视频详情页,顶部状态栏信息会显示、点播放也不会消失