1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-20 00:35:17 +00:00

Improve management of cache key

This commit is contained in:
2022-03-12 10:57:11 +01:00
parent 2a50190e94
commit 2ee4590364
4 changed files with 45 additions and 24 deletions

View File

@ -74,9 +74,13 @@ Widget buildErrorCard(String? message,
}
/// Show an image with a given [url] in full screen
void showImageFullScreen(BuildContext context, String? url) {
void showImageFullScreen(BuildContext context, String? url,
{String? cacheKey}) {
Navigator.of(context).push(MaterialPageRoute(builder: (c) {
return FullScreenImageRoute(url!);
return FullScreenImageRoute(
url: url!,
cacheKey: cacheKey,
);
}));
}