Initial commit

This commit is contained in:
admin1
2026-07-14 11:11:36 +08:00
commit 656499cf94
604 changed files with 119518 additions and 0 deletions
@@ -0,0 +1,20 @@
import 'package:flutter/foundation.dart';
enum PlayerPanelCategory { subtitle, audio, speed, fit, episode, danmaku }
class PlayerPanelController extends ValueNotifier<PlayerPanelCategory?> {
PlayerPanelController() : super(null);
bool get isOpen => value != null;
PlayerPanelCategory? get category => value;
void open(PlayerPanelCategory category) => value = category;
void toggle(PlayerPanelCategory category) =>
value = (value == category) ? null : category;
void close() => value = null;
}