Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-07 11:54:28 +08:00
parent cae5befa63
commit 1946218df3
21 changed files with 446 additions and 334 deletions

View File

@@ -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