mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
* opt: sized * fix: self send * feat: ctrl enter to send * opt: checked * opt: download notifier * opt: Future.syncValue * mod: account * mod: loading state * opt: DebounceStreamMixin * opt: report * opt: enum map * opt: file handler * opt: dyn color * opt: Uint8List subview * opt: FileExt * opt: computeLuminance * opt: isNullOrEmpty * opt: Get context * update [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * opt dynamicColor [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * fixes [skip ci] * update Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * update Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Signed-off-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com> Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
22 lines
715 B
Dart
22 lines
715 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;
|
|
|
|
RxList<int> counts = List.filled(LaterViewType.values.length, -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);
|
|
}
|
|
}
|