mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
feat: fold dyn
Closes #1153 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -74,4 +74,17 @@ class DynamicsTabController
|
||||
..refresh();
|
||||
}
|
||||
}
|
||||
|
||||
void onUnfold(DynamicItemModel item, int index) {
|
||||
try {
|
||||
final list = loadingState.value.data!;
|
||||
final ids = item.modules.moduleFold!.ids!;
|
||||
final flag = index + ids.length + 1;
|
||||
for (int i = index + 1; i < flag; i++) {
|
||||
list[i].visible = true;
|
||||
}
|
||||
item.modules.moduleFold = null;
|
||||
loadingState.refresh();
|
||||
} catch (_) {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user