Jonny Borges
Committed by GitHub

Add files via upload

... ... @@ -143,6 +143,11 @@
## [1.10.4]
-Improve Get.offAll() - predicate now is optional
## [1.10.5]
-Added setKey to improve modular compatibility
-Added ability to define transition duration directly when calling the new route.
... ...
... ... @@ -9,7 +9,7 @@ I worked on a pull to fix it in the framework, and seeing how things work I real
With that in mind, I created this library that will change the way you work with the Framework and save your life from cliche code,
increasing your productivity, and eliminating all the bugs present in Flutter's default navigation altogether.
##### If you use MODULAR, you can to use [GET MODULAR](https://pub.dev/packages/get_modular)
##### If you use MODULAR, you can to use [GET MODULAR](https://pub.dev/packages/get_modular) or add on your MaterialApp this: navigatorKey: Get.addKey(Modular.navigatorKey)
## How to use?
... ... @@ -17,7 +17,7 @@ Add this to your package's pubspec.yaml file:
```
dependencies:
get: ^1.10.4
get: ^1.10.5
```
And import it:
... ...
... ... @@ -9,7 +9,19 @@ import 'transparent_route.dart';
class Get {
static Get _get;
static GlobalKey<NavigatorState> key = new GlobalKey<NavigatorState>();
static GlobalKey<NavigatorState> _key;
static GlobalKey<NavigatorState> addKey(GlobalKey<NavigatorState> newKey) {
_key = newKey;
return _key;
}
static GlobalKey<NavigatorState> get key {
if (_key == null) {
_key = GlobalKey<NavigatorState>();
}
return _key;
}
///Use Get.to instead of Navigator.push, Get.off instead of Navigator.pushReplacement,
///Get.offAll instead of Navigator.pushAndRemoveUntil. For named routes just add "named"
... ...
name: get
description: A consistent navigation library that lets you navigate between screens, open dialogs, and display snackbars easily with no context.
version: 1.10.4
version: 1.10.5
homepage: https://github.com/jonataslaw/get
environment:
... ...