We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ff04e commit e7bb14cCopy full SHA for e7bb14c
lib/view/projects/components/project_media_widgets.dart
@@ -77,10 +77,16 @@ class _ImageGalleryState extends State<ImageGallery> {
77
onTap: () {
78
showDialog(
79
context: context,
80
- useRootNavigator: false,
81
- builder: (_) => ImageGalleryDialog(
82
- images: widget.images,
83
- initialIndex: widget.images.indexOf(displayImages[index]),
+ builder: (_) => PopScope(
+ canPop: false,
+ onPopInvokedWithResult: (didPop, result) async {
+ if (didPop) return;
84
+ Navigator.of(context).pop();
85
+ },
86
+ child: ImageGalleryDialog(
87
+ images: widget.images,
88
+ initialIndex: widget.images.indexOf(displayImages[index]),
89
+ ),
90
),
91
);
92
},
0 commit comments