fix: player key

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-27 16:52:33 +08:00
parent 609fab345a
commit 587870ad71
3 changed files with 24 additions and 21 deletions

View File

@@ -289,8 +289,6 @@ class PlPlayerController {
// 播放顺序相关
PlayRepeat playRepeat = PlayRepeat.pause;
GlobalKey<VideoState> key = GlobalKey<VideoState>();
TextStyle get subTitleStyle => TextStyle(
height: 1.5,
fontSize:
@@ -313,10 +311,12 @@ class PlPlayerController {
textScaleFactor: MediaQuery.textScalerOf(Get.context!).scale(1),
);
late Function getPlayerKey;
void updateSubtitleStyle() {
key.currentState?.update(
subtitleViewConfiguration: subtitleViewConfiguration,
);
getPlayerKey().currentState?.update(
subtitleViewConfiguration: subtitleViewConfiguration,
);
}
void updateSliderPositionSecond() {