From c418d190ea9fdd2cebb12de45aaea79c7e90b4fe Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Wed, 23 Sep 2020 12:07:51 +0200 Subject: [PATCH] add back button --- lib/src/full_screen_image.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/src/full_screen_image.dart b/lib/src/full_screen_image.dart index c6f5804f..76953b1a 100644 --- a/lib/src/full_screen_image.dart +++ b/lib/src/full_screen_image.dart @@ -15,8 +15,14 @@ class FullScreenImage extends StatelessWidget { @override Widget build(BuildContext context) { - return Container( - child: PhotoView( + return Scaffold( + appBar: AppBar( + backgroundColor: Colors.black, + iconTheme: IconThemeData( + color: Colors.white, + ), + ), + body: PhotoView( imageProvider: CachedNetworkImageProvider(url), maxScale: PhotoViewComputedScale.covered, minScale: PhotoViewComputedScale.contained,