From 4b0b41a9021e697b50552ee0fef04087259815c6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 25 Apr 2020 14:49:49 +0200 Subject: [PATCH] Create scaffold for full screen image --- lib/utils/ui_utils.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/utils/ui_utils.dart b/lib/utils/ui_utils.dart index ea72824..934b192 100644 --- a/lib/utils/ui_utils.dart +++ b/lib/utils/ui_utils.dart @@ -69,8 +69,13 @@ Widget buildErrorCard(String message, /// Show an image with a given [url] in full screen void showImageFullScreen(BuildContext context, String url) { Navigator.of(context).push(MaterialPageRoute(builder: (c) { - return PhotoView( - imageProvider: CachedNetworkImageProvider(url), + return Scaffold( + appBar: AppBar( + title: Text(tr("Image")), + ), + body: PhotoView( + imageProvider: CachedNetworkImageProvider(url), + ), ); })); }