From 92dee0052c3be2a59f59f8cce601dad5120f0297 Mon Sep 17 00:00:00 2001 From: Jonny Borges <35742643+jonataslaw@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:43:25 -0300 Subject: [PATCH] New release --- CHANGELOG.md | 5 +++++ lib/get_navigation/src/extension_navigation.dart | 8 +++++--- pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f62c4f57..e3bbdb76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [5.0.0-release-candidate-10] + +- Fix Get.offNamedUntil +- Fix GetObserver + ## [5.0.0-release-candidate-9] - Fix redirectDelegate middleware diff --git a/lib/get_navigation/src/extension_navigation.dart b/lib/get_navigation/src/extension_navigation.dart index 5cb7d981..13718e4a 100644 --- a/lib/get_navigation/src/extension_navigation.dart +++ b/lib/get_navigation/src/extension_navigation.dart @@ -172,7 +172,7 @@ extension ExtensionDialog on GetInterface { List? actions, // onWillPop Scope - PopInvokedCallback? onWillPop, + PopInvokedWithResultCallback? onWillPop, // the navigator used to push the dialog GlobalKey? navigatorKey, @@ -268,8 +268,10 @@ extension ExtensionDialog on GetInterface { return dialog( onWillPop != null - ? PopScope( - onPopInvoked: onWillPop, + ? PopScope( + onPopInvokedWithResult: (didPop, result) => + onWillPop(didPop, result), + // onPopInvoked: onWillPop, child: baseAlertDialog, ) : baseAlertDialog, diff --git a/pubspec.yaml b/pubspec.yaml index 23cf53b8..99e36917 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: get description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. -version: 5.0.0-release-candidate-9 +version: 5.0.0-release-candidate-10 homepage: https://github.com/jonataslaw/getx environment: