Jonny Borges
Committed by GitHub

Merge pull request #2750 from punit1111/master

Fix Return Result From Dialog And Bottomsheet On Get.back<T>(result: T)
... ... @@ -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;
}
... ... @@ -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) {
... ...