mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt filter dyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -13,6 +13,7 @@ class DynamicsDataModel {
|
||||
List<DynamicItemModel>? items;
|
||||
String? offset;
|
||||
int? total;
|
||||
bool? loadNext;
|
||||
|
||||
static String _getMatchText(DynamicItemModel item) {
|
||||
final moduleDynamic = item.modules.moduleDynamic;
|
||||
@@ -79,6 +80,10 @@ class DynamicsDataModel {
|
||||
}
|
||||
items!.add(item);
|
||||
}
|
||||
// filtered all
|
||||
if (items!.isEmpty) {
|
||||
loadNext = true;
|
||||
}
|
||||
}
|
||||
|
||||
offset = json['offset'];
|
||||
|
||||
Reference in New Issue
Block a user