1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Create scaffold for full screen image

This commit is contained in:
Pierre HUBERT 2020-04-25 14:49:49 +02:00
parent c65d87dacc
commit 4b0b41a902

View File

@ -69,8 +69,13 @@ Widget buildErrorCard(String message,
/// Show an image with a given [url] in full screen /// Show an image with a given [url] in full screen
void showImageFullScreen(BuildContext context, String url) { void showImageFullScreen(BuildContext context, String url) {
Navigator.of(context).push(MaterialPageRoute(builder: (c) { Navigator.of(context).push(MaterialPageRoute(builder: (c) {
return PhotoView( return Scaffold(
imageProvider: CachedNetworkImageProvider(url), appBar: AppBar(
title: Text(tr("Image")),
),
body: PhotoView(
imageProvider: CachedNetworkImageProvider(url),
),
); );
})); }));
} }