From 4a44177900cd9820927e2146be605b3218039e42 Mon Sep 17 00:00:00 2001 From: Taha Tesser Date: Fri, 4 Oct 2024 01:10:29 +0300 Subject: [PATCH] Update Navigator pop --- lib/src/buttons/pulldown_button.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/buttons/pulldown_button.dart b/lib/src/buttons/pulldown_button.dart index 09702afa..6f18ae73 100644 --- a/lib/src/buttons/pulldown_button.dart +++ b/lib/src/buttons/pulldown_button.dart @@ -65,7 +65,7 @@ class _MacosPulldownMenuItemButtonState final MacosPulldownMenuEntry menuEntity = widget.route.items[widget.itemIndex].item!; if (menuEntity is MacosPulldownMenuItem) { - Navigator.pop(context); + Navigator.of(context).pop(); menuEntity.onTap?.call(); } }