Committed by
GitHub
Merge pull request #2750 from punit1111/master
Fix Return Result From Dialog And Bottomsheet On Get.back<T>(result: T)
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -807,7 +807,7 @@ extension GetNavigationExt on GetInterface { | @@ -807,7 +807,7 @@ extension GetNavigationExt on GetInterface { | ||
807 | //TODO: remove this when change own api to Dialog and BottomSheets | 807 | //TODO: remove this when change own api to Dialog and BottomSheets |
808 | //to declarative way | 808 | //to declarative way |
809 | if (isDialogOpen! || isBottomSheetOpen!) { | 809 | if (isDialogOpen! || isBottomSheetOpen!) { |
810 | - searchDelegate(id).navigatorKey.currentState?.pop(); | 810 | + searchDelegate(id).navigatorKey.currentState?.pop(result); |
811 | return; | 811 | return; |
812 | } | 812 | } |
813 | 813 | ||
@@ -826,7 +826,7 @@ extension GetNavigationExt on GetInterface { | @@ -826,7 +826,7 @@ extension GetNavigationExt on GetInterface { | ||
826 | } | 826 | } |
827 | 827 | ||
828 | while ((isDialogOpen! && isBottomSheetOpen!)) { | 828 | while ((isDialogOpen! && isBottomSheetOpen!)) { |
829 | - searchDelegate(id).navigatorKey.currentState?.pop(); | 829 | + searchDelegate(id).navigatorKey.currentState?.pop(result); |
830 | } | 830 | } |
831 | 831 | ||
832 | // navigator?.popUntil((route) { | 832 | // navigator?.popUntil((route) { |
-
Please register or login to post a comment