mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -81,10 +81,10 @@ mixin DeleteItemMixin<R, T extends MultiSelectData>
|
||||
} else {
|
||||
list.removeWhere(removeList.contains);
|
||||
}
|
||||
if (!isEnd) {
|
||||
onReload();
|
||||
} else {
|
||||
if (list.isNotEmpty || isEnd) {
|
||||
loadingState.refresh();
|
||||
} else {
|
||||
onReload();
|
||||
}
|
||||
if (enableMultiSelect.value) {
|
||||
rxCount.value = 0;
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/member.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_audio/data.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_audio/item.dart';
|
||||
import 'package:PiliPlus/pages/common/common_list_controller.dart';
|
||||
|
||||
class MemberAudioController
|
||||
extends CommonListController<SpaceAudioData, SpaceAudioItem> {
|
||||
MemberAudioController(this.mid);
|
||||
|
||||
final int mid;
|
||||
int? totalSize;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
queryData();
|
||||
}
|
||||
|
||||
@override
|
||||
void checkIsEnd(int length) {
|
||||
if (totalSize != null && length >= totalSize!) {
|
||||
isEnd = true;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
List<SpaceAudioItem>? getDataList(SpaceAudioData response) {
|
||||
totalSize = response.totalSize;
|
||||
return response.items;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<LoadingState<SpaceAudioData>> customGetData() => MemberHttp.spaceAudio(
|
||||
page: page,
|
||||
mid: mid,
|
||||
);
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class SearchPanelController<R extends SearchNumData<T>, T>
|
||||
int? pubBegin;
|
||||
int? pubEnd;
|
||||
|
||||
// article
|
||||
// user
|
||||
Rx<UserOrderType>? userOrderType;
|
||||
Rx<UserType>? userType;
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ class SearchVideoController
|
||||
).millisecondsSinceEpoch ~/
|
||||
1000;
|
||||
}
|
||||
onSortSearch(label: e.label);
|
||||
onSortSearch();
|
||||
},
|
||||
bgColor: isCurr
|
||||
? theme.colorScheme.secondaryContainer
|
||||
@@ -224,14 +224,10 @@ class SearchVideoController
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Row(
|
||||
spacing: 8,
|
||||
children: [
|
||||
Expanded(child: dateWidget()),
|
||||
const SizedBox(width: 8),
|
||||
const Text(
|
||||
'至',
|
||||
style: TextStyle(fontSize: 13),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
const Text('至', style: TextStyle(fontSize: 13)),
|
||||
Expanded(child: dateWidget(false)),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user