Jonny Borges

update to 4.2.5

## [4.2.4]
- Added anchorRoute and filterPages to
// anchorRoute: '/',
// filterPages:
## [4.2.5]
- Added anchorRoute and filterPages to GetRouterOutlet (@ahmednfwela)
- Added scrollBehavior and scaffoldMessengerKey to GetMaterialapp(@ejabu and @alionour)
- Fix error when child on MaterialApp is null (@ahmednfwela)
- Fix Korean docs (@rws08)
- Fix error with onClose called before routeTransition on Get.offNamed
## [4.2.4]
- Fix Get.offAll removing GetxServices from memory
... ...
... ... @@ -240,7 +240,7 @@ class GetInstance {
}
for (final element in keysToRemove) {
reload(key: element);
reload(key: element, closeInstance: false);
//_routesKey.remove(element);
}
... ... @@ -459,7 +459,11 @@ class GetInstance {
});
}
void reload<S>({String? tag, String? key, bool force = false}) {
void reload<S>(
{String? tag,
String? key,
bool force = false,
bool closeInstance = true}) {
final newKey = key ?? _getKey(S, tag);
final builder = _getDependency<S>(tag: tag, key: newKey);
... ... @@ -479,7 +483,7 @@ class GetInstance {
return;
}
if (i is GetLifeCycleBase) {
if (i is GetLifeCycleBase && closeInstance) {
i.onDelete();
Get.log('"$newKey" onDelete() called');
}
... ...
... ... @@ -196,6 +196,18 @@ class GetCupertinoApp extends StatelessWidget {
];
}
Widget defaultBuilder(BuildContext context, Widget? child) {
return Directionality(
textDirection: textDirection ??
(rtlLanguages.contains(Get.locale?.languageCode)
? TextDirection.rtl
: TextDirection.ltr),
child: builder == null
? (child ?? Material())
: builder!(context, child ?? Material()),
);
}
@override
Widget build(BuildContext context) => GetBuilder<GetMaterialController>(
init: Get.rootController,
... ... @@ -244,15 +256,7 @@ class GetCupertinoApp extends StatelessWidget {
routeInformationProvider: routeInformationProvider,
key: _.unikey,
theme: theme,
builder: (context, child) {
return Directionality(
textDirection: textDirection ??
(rtlLanguages.contains(Get.locale?.languageCode)
? TextDirection.rtl
: TextDirection.ltr),
child: builder == null ? child! : builder!(context, child),
);
},
builder: defaultBuilder,
title: title,
onGenerateTitle: onGenerateTitle,
color: color,
... ... @@ -271,12 +275,14 @@ class GetCupertinoApp extends StatelessWidget {
: CupertinoApp(
key: _.unikey,
theme: theme,
navigatorKey:
(navigatorKey == null ? Get.key : Get.addKey(navigatorKey!)),
navigatorKey: (navigatorKey == null
? Get.key
: Get.addKey(navigatorKey!)),
home: home,
routes: routes ?? const <String, WidgetBuilder>{},
initialRoute: initialRoute,
onGenerateRoute: (getPages != null ? generator : onGenerateRoute),
onGenerateRoute:
(getPages != null ? generator : onGenerateRoute),
onGenerateInitialRoutes: (getPages == null || home != null)
? onGenerateInitialRoutes
: initialRoutesGenerate,
... ... @@ -289,15 +295,7 @@ class GetCupertinoApp extends StatelessWidget {
GetObserver(routingCallback, Get.routing)
]
..addAll(navigatorObservers!)),
builder: (context, child) {
return Directionality(
textDirection: textDirection ??
(rtlLanguages.contains(Get.locale?.languageCode)
? TextDirection.rtl
: TextDirection.ltr),
child: builder == null ? child! : builder!(context, child),
);
},
builder: defaultBuilder,
title: title,
onGenerateTitle: onGenerateTitle,
color: color,
... ... @@ -313,5 +311,6 @@ class GetCupertinoApp extends StatelessWidget {
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
shortcuts: shortcuts,
// actions: actions,
));
),
);
}
... ...
... ... @@ -220,8 +220,8 @@ class GetMaterialApp extends StatelessWidget {
? TextDirection.rtl
: TextDirection.ltr),
child: builder == null
? (child ?? SizedBox.shrink())
: builder!(context, child),
? (child ?? Material())
: builder!(context, child ?? Material()),
);
}
... ...
name: get
description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
version: 4.2.4
version: 4.2.5
homepage: https://github.com/jonataslaw/getx
environment:
... ...