mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-12 12:20:13 +08:00
@@ -17,7 +17,7 @@ class DynTopicController
|
||||
String topicName = Get.parameters['name'] ?? '';
|
||||
|
||||
int sortBy = 0;
|
||||
String offset = '';
|
||||
String? offset;
|
||||
final topicSortByConf = Rxn<TopicSortByConf>();
|
||||
|
||||
double? appbarOffset;
|
||||
@@ -49,13 +49,16 @@ class DynTopicController
|
||||
|
||||
@override
|
||||
List<TopicCardItem>? getDataList(TopicCardList? response) {
|
||||
offset = response?.offset ?? '';
|
||||
topicSortByConf.value = response?.topicSortByConf;
|
||||
sortBy = response?.topicSortByConf?.showSortBy ?? 0;
|
||||
if (response?.hasMore == false) {
|
||||
isEnd = true;
|
||||
if (response != null) {
|
||||
offset = response.offset;
|
||||
topicSortByConf.value = response.topicSortByConf;
|
||||
sortBy = response.topicSortByConf?.showSortBy ?? 0;
|
||||
if (response.hasMore == false) {
|
||||
isEnd = true;
|
||||
}
|
||||
return response.items;
|
||||
}
|
||||
return response?.items;
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user