mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
24 lines
745 B
Dart
24 lines
745 B
Dart
import 'package:PiliPlus/models/common/later_view_type.dart';
|
|
import 'package:PiliPlus/utils/storage.dart';
|
|
import 'package:PiliPlus/utils/storage_key.dart';
|
|
import 'package:PiliPlus/utils/storage_pref.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
class LaterBaseController extends GetxController {
|
|
RxBool enableMultiSelect = false.obs;
|
|
RxInt checkedCount = 0.obs;
|
|
|
|
RxMap<LaterViewType, int> counts = {
|
|
for (final item in LaterViewType.values) item: -1,
|
|
}.obs;
|
|
|
|
late double dx = 0;
|
|
late final RxBool isPlayAll = Pref.enablePlayAll.obs;
|
|
|
|
void setIsPlayAll(bool isPlayAll) {
|
|
if (this.isPlayAll.value == isPlayAll) return;
|
|
this.isPlayAll.value = isPlayAll;
|
|
GStorage.setting.put(SettingBoxKey.enablePlayAll, isPlayAll);
|
|
}
|
|
}
|