opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-24 16:36:26 +08:00
parent 4d7d9abc60
commit c28729af5b
27 changed files with 266 additions and 310 deletions

View File

@@ -119,7 +119,7 @@ class _FavSortPageState extends State<FavSortPage> {
}
Widget get _buildBody {
return ReorderableListView(
return ReorderableListView.builder(
key: _key,
scrollController: _scrollController,
onReorder: onReorder,
@@ -127,18 +127,18 @@ class _FavSortPageState extends State<FavSortPage> {
footer: SizedBox(
height: MediaQuery.of(context).padding.bottom + 80,
),
children: sortList
.map(
(item) => SizedBox(
key: Key(item.id.toString()),
height: 98,
child: FavVideoCardH(
isSort: true,
videoItem: item,
),
),
)
.toList(),
itemCount: sortList.length,
itemBuilder: (context, index) {
final item = sortList[index];
return SizedBox(
key: Key(item.id.toString()),
height: 98,
child: FavVideoCardH(
isSort: true,
videoItem: item,
),
);
},
);
}
}