mod: danmaku

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-27 10:39:53 +08:00
parent 91fc383723
commit 8e8dc273aa
11 changed files with 22 additions and 29 deletions

View File

@@ -1,5 +1,3 @@
// ignore_for_file: avoid_print
import 'dart:async';
import 'dart:io';
import 'dart:typed_data';
@@ -85,8 +83,7 @@ class PlPlayerController {
final Rx<bool> _continuePlayInBackground = false.obs;
///
// ignore: prefer_final_fields
Rx<bool> _isSliderMoving = false.obs;
final Rx<bool> _isSliderMoving = false.obs;
PlaylistMode _looping = PlaylistMode.none;
bool _autoPlay = false;
final bool _listenersInitialized = false;

View File

@@ -1,4 +1,3 @@
// ignore: camel_case_types
enum BtmProgressBehavior {
alwaysShow,
alwaysHide,

View File

@@ -583,6 +583,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
@override
Widget build(BuildContext context) {
_listenerFS?.cancel();
_listenerFS = isFullScreen
? plPlayerController.subtitleFontScaleFS.listen((value) {
_updateSubtitle(value);