opt: video tool bar

Closes #528

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-27 15:43:08 +08:00
parent 6ff83e34f3
commit 3a6b6614a4
3 changed files with 89 additions and 56 deletions

View File

@@ -95,6 +95,7 @@ class VideoDetailController extends GetxController
// 默认记录历史记录
bool enableHeart = true;
Floating? floating;
late final headerCtrKey = GlobalKey<HeaderControlState>();
late PreferredSizeWidget headerControl;
Box get setting => GStorage.setting;
@@ -291,6 +292,7 @@ class VideoDetailController extends GetxController
floating = Floating();
}
headerControl = HeaderControl(
key: headerCtrKey,
controller: plPlayerController,
videoDetailCtr: this,
floating: floating,