Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-17 12:43:09 +08:00
parent ab1e5cb62a
commit b4fb7d14d4
31 changed files with 84 additions and 85 deletions

View File

@@ -550,7 +550,7 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
return FavFolderItem(
heroTag: Utils.generateRandomString(8),
item: response.list[index],
callback: () => Future.delayed(
onPop: () => Future.delayed(
const Duration(milliseconds: 150),
controller.onRefresh,
),

View File

@@ -8,12 +8,12 @@ class FavFolderItem extends StatelessWidget {
const FavFolderItem({
super.key,
required this.item,
required this.callback,
required this.onPop,
required this.heroTag,
});
final FavFolderInfo item;
final VoidCallback callback;
final VoidCallback onPop;
final String heroTag;
@override
@@ -30,7 +30,7 @@ class FavFolderItem extends StatelessWidget {
'mediaId': item.id.toString(),
'heroTag': heroTag,
},
)?.whenComplete(callback);
)?.whenComplete(onPop);
},
behavior: HitTestBehavior.opaque,
child: Column(