mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
@@ -81,10 +81,10 @@ mixin DeleteItemMixin<R, T extends MultiSelectData>
|
|||||||
} else {
|
} else {
|
||||||
list.removeWhere(removeList.contains);
|
list.removeWhere(removeList.contains);
|
||||||
}
|
}
|
||||||
if (!isEnd) {
|
if (list.isNotEmpty || isEnd) {
|
||||||
onReload();
|
|
||||||
} else {
|
|
||||||
loadingState.refresh();
|
loadingState.refresh();
|
||||||
|
} else {
|
||||||
|
onReload();
|
||||||
}
|
}
|
||||||
if (enableMultiSelect.value) {
|
if (enableMultiSelect.value) {
|
||||||
rxCount.value = 0;
|
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? pubBegin;
|
||||||
int? pubEnd;
|
int? pubEnd;
|
||||||
|
|
||||||
// article
|
// user
|
||||||
Rx<UserOrderType>? userOrderType;
|
Rx<UserOrderType>? userOrderType;
|
||||||
Rx<UserType>? userType;
|
Rx<UserType>? userType;
|
||||||
|
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ class SearchVideoController
|
|||||||
).millisecondsSinceEpoch ~/
|
).millisecondsSinceEpoch ~/
|
||||||
1000;
|
1000;
|
||||||
}
|
}
|
||||||
onSortSearch(label: e.label);
|
onSortSearch();
|
||||||
},
|
},
|
||||||
bgColor: isCurr
|
bgColor: isCurr
|
||||||
? theme.colorScheme.secondaryContainer
|
? theme.colorScheme.secondaryContainer
|
||||||
@@ -224,14 +224,10 @@ class SearchVideoController
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Row(
|
Row(
|
||||||
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: dateWidget()),
|
Expanded(child: dateWidget()),
|
||||||
const SizedBox(width: 8),
|
const Text('至', style: TextStyle(fontSize: 13)),
|
||||||
const Text(
|
|
||||||
'至',
|
|
||||||
style: TextStyle(fontSize: 13),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 8),
|
|
||||||
Expanded(child: dateWidget(false)),
|
Expanded(child: dateWidget(false)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user