use ValueGetter

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-14 14:14:27 +08:00
parent bc5ce11449
commit 1cd949c365
8 changed files with 11 additions and 13 deletions

View File

@@ -28,8 +28,8 @@ class PlayerFocus extends StatelessWidget {
final PlPlayerController plPlayerController;
final CommonIntroController? introController;
final VoidCallback onSendDanmaku;
final bool Function()? canPlay;
final bool Function()? onSkipSegment;
final ValueGetter<bool>? canPlay;
final ValueGetter<bool>? onSkipSegment;
static bool _shouldHandle(LogicalKeyboardKey logicalKey) {
return logicalKey == LogicalKeyboardKey.tab ||