mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 新增未播放的初始态;黑屏后仍可随播放状态显示出播放器
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
enum PlayerStatus { completed, playing, paused }
|
||||
enum PlayerStatus { completed, playing, paused, none }
|
||||
|
||||
class PlPlayerStatus {
|
||||
Rx<PlayerStatus> status = Rx(PlayerStatus.paused);
|
||||
Rx<PlayerStatus> status = Rx(PlayerStatus.none);
|
||||
|
||||
bool get none {
|
||||
return status.value == PlayerStatus.none;
|
||||
}
|
||||
|
||||
bool get playing {
|
||||
return status.value == PlayerStatus.playing;
|
||||
|
||||
Reference in New Issue
Block a user