From 392763a4b0903e7dbdaf5e9fc0b17085637bfec1 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:33:35 +0530 Subject: [PATCH] Add backbutton for pano images --- .../lib/ui/viewer/file/panorama_viewer_screen.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart b/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart index 77c1f5b74a..fe5c94652f 100644 --- a/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart +++ b/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart @@ -14,6 +14,18 @@ class PanoramaViewerScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( + appBar: AppBar( + elevation: 0, // Remove shadow + leading: IconButton( + icon: const Icon( + Icons.arrow_back, + size: 18, + ), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ), body: PanoramaViewer( child: Image.file( file,