* 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>
This commit is contained in:
My-Responsitories
2025-12-17 17:01:10 +08:00
committed by GitHub
parent 02e0d34127
commit ce5e85e64b
87 changed files with 707 additions and 646 deletions

View File

@@ -1,6 +1,5 @@
import 'package:PiliPlus/http/loading_state.dart';
import 'package:PiliPlus/pages/common/common_controller.dart';
import 'package:PiliPlus/utils/extension/iterable_ext.dart';
import 'package:get/get.dart';
abstract class CommonListController<R, T> extends CommonController<R, T> {
@@ -27,8 +26,8 @@ abstract class CommonListController<R, T> extends CommonController<R, T> {
LoadingState<R> response = await customGetData();
if (response is Success<R>) {
if (!customHandleResponse(isRefresh, response)) {
List<T>? dataList = getDataList(response.response);
if (dataList.isNullOrEmpty) {
final dataList = getDataList(response.response);
if (dataList == null || dataList.isEmpty) {
isEnd = true;
if (isRefresh) {
loadingState.value = Success(dataList);
@@ -38,7 +37,7 @@ abstract class CommonListController<R, T> extends CommonController<R, T> {
isLoading = false;
return;
}
handleListResponse(dataList!);
handleListResponse(dataList);
if (isRefresh) {
checkIsEnd(dataList.length);
loadingState.value = Success(dataList);