Skip to content

Commit

Permalink
Merge pull request #2750 from punit1111/master
Browse files Browse the repository at this point in the history
Fix Return Result From Dialog And Bottomsheet On Get.back<T>(result: T)
  • Loading branch information
jonataslaw authored Aug 24, 2023
2 parents 51e1780 + 27bbaaa commit 20c66a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get_navigation/src/extension_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ extension GetNavigationExt on GetInterface {
//TODO: remove this when change own api to Dialog and BottomSheets
//to declarative way
if (isDialogOpen! || isBottomSheetOpen!) {
searchDelegate(id).navigatorKey.currentState?.pop();
searchDelegate(id).navigatorKey.currentState?.pop(result);
return;
}

Expand All @@ -826,7 +826,7 @@ extension GetNavigationExt on GetInterface {
}

while ((isDialogOpen! && isBottomSheetOpen!)) {
searchDelegate(id).navigatorKey.currentState?.pop();
searchDelegate(id).navigatorKey.currentState?.pop(result);
}

// navigator?.popUntil((route) {
Expand Down

0 comments on commit 20c66a2

Please sign in to comment.