Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -22,7 +22,8 @@ class _FavSortPageState extends State<FavSortPage> {
final GlobalKey _key = GlobalKey();
late List<FavDetailItemModel> sortList = List<FavDetailItemModel>.from(
_favDetailController.loadingState.value.data!);
_favDetailController.loadingState.value.data!,
);
List<String> sort = <String>[];
final ScrollController _scrollController = ScrollController();
@@ -107,10 +108,12 @@ class _FavSortPageState extends State<FavSortPage> {
}
final oldItem = sortList[oldIndex];
final newItem =
sortList.getOrNull(oldIndex > newIndex ? newIndex - 1 : newIndex);
final newItem = sortList.getOrNull(
oldIndex > newIndex ? newIndex - 1 : newIndex,
);
sort.add(
'${newItem == null ? '0:0' : '${newItem.id}:${newItem.type}'}:${oldItem.id}:${oldItem.type}');
'${newItem == null ? '0:0' : '${newItem.id}:${newItem.type}'}:${oldItem.id}:${oldItem.type}',
);
final tabsItem = sortList.removeAt(oldIndex);
sortList.insert(newIndex, tabsItem);