Add backbutton for pano images

This commit is contained in:
Neeraj Gupta
2024-07-18 11:33:35 +05:30
parent db27eb718f
commit 392763a4b0

View File

@@ -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,