Jonatas

update to 3.25.5

  1 +## [3.25.5]
  2 +- Fix Get.isDialogOpen when two or more open dialogs are closed
  3 +
1 ## [3.25.4] 4 ## [3.25.4]
2 - Added logs and tests to unknownRoute 5 - Added logs and tests to unknownRoute
3 6
@@ -1092,7 +1092,13 @@ Since version 2.8 it is possible to access the properties @@ -1092,7 +1092,13 @@ Since version 2.8 it is possible to access the properties
1092 BuildContext get context => key?.currentContext; 1092 BuildContext get context => key?.currentContext;
1093 1093
1094 /// give access to current Overlay Context 1094 /// give access to current Overlay Context
1095 - BuildContext get overlayContext => key?.currentState?.overlay?.context; 1095 + BuildContext get overlayContext {
  1096 + BuildContext overlay;
  1097 + key?.currentState?.overlay?.context?.visitChildElements((element) {
  1098 + overlay = element;
  1099 + });
  1100 + return overlay;
  1101 + }
1096 1102
1097 /// give access to Theme.of(context) 1103 /// give access to Theme.of(context)
1098 ThemeData get theme { 1104 ThemeData get theme {
@@ -156,12 +156,13 @@ class GetObserver extends NavigatorObserver { @@ -156,12 +156,13 @@ class GetObserver extends NavigatorObserver {
156 value.isBack = true; 156 value.isBack = true;
157 value.removed = ''; 157 value.removed = '';
158 value.previous = newRoute.name ?? ''; 158 value.previous = newRoute.name ?? '';
159 - value.isSnackbar = currentRoute.isSnackbar ? false : value.isSnackbar;  
160 - value.isBottomSheet =  
161 - currentRoute.isBottomSheet ? false : value.isBottomSheet;  
162 - value.isDialog = currentRoute.isDialog ? false : value.isDialog; 159 + value.isSnackbar = newRoute.isSnackbar;
  160 + value.isBottomSheet = newRoute.isBottomSheet;
  161 + value.isDialog = newRoute.isDialog;
163 }); 162 });
164 163
  164 + print('currentRoute.isDialog ${currentRoute.isDialog}');
  165 +
165 routing?.call(_routeSend); 166 routing?.call(_routeSend);
166 } 167 }
167 168
1 name: get 1 name: get
2 description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. 2 description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
3 -version: 3.25.4 3 +version: 3.25.5
4 homepage: https://github.com/jonataslaw/getx 4 homepage: https://github.com/jonataslaw/getx
5 5
6 environment: 6 environment: