- Added Get.removeRoute // ability to remove one route.
Get.until // back repeatedly until the predicate returns true.
Get.offUntil // go to next route and remove all the previous routes until the predicate returns true.
Get.offNamedUntil // go to next named route and remove all the previous routes until the predicate returns true.
...
...
@@ -85,3 +85,21 @@
## [1.6.3]
- Clean code.
## [1.6.4]
- Improve performance.
## [1.7.0]
- Improve geral performance. Get.to Wrap now consumes even less RAM and CPU. In an application with 20 screens, it obtained 82% less RAM usage compared to the traditional method Navigator.push and had a CPU normalization of 23% in a Moto z2, against 64% CPU usage in Navigator.push with MaterialPageRoute. Test it for yourself!
@@ -15,7 +15,7 @@ Add this to your package's pubspec.yaml file:
```
dependencies:
get: ^1.6.3
get: ^1.7.1
```
And import it:
...
...
@@ -68,6 +68,17 @@ ex:
```dart
if(data=='sucess')madeAnything();
```
Others methods:
Get.removeRoute // remove one route.
Get.until // back repeatedly until the predicate returns true.
Get.offUntil // go to next route and remove all the previous routes until the predicate returns true.
Get.offNamedUntil // go to next named route and remove all the previous routes until the predicate returns true.
To show a modern snackbar:
```dart
Get.snackbar('Hi','i am a modern snackbar');
Toopendialog:
```dart
...
...
@@ -91,25 +102,23 @@ To open default dialog:
```
To have a simple SnackBar with Flutter, you must get the context of Scaffold, or you must use a GlobalKey attached to your Scaffold,
but with Get, all you have to do is call your SnackBar from anywhere in your code! No context, no cliche code!
but with Get, all you have to do is call your SnackBar from anywhere in your code and and customize it however you want!
```dart
GetBar(
title: "Hey i'm a Get SnackBar!",
message:
"It's unbelievable! I'm using SnackBar without context, without boilerplate, without Scaffold, it is something truly amazing!",
icon: Icon(Icons.alarm),
shouldIconPulse: true,
onTap:(){},
barBlur: 20,
isDismissible: true,
duration: Duration(seconds: 3),
)..show();
```
Plus, the default SnackBar is completely inflexible, while GetBar lets you change the color, shape, opacity, and anything else you want!
Others methods:
Get.removeRoute // remove one route.
Get.until // back repeatedly until the predicate returns true.
Get.offUntil // go to next route and remove all the previous routes until the predicate returns true.
Get.offNamedUntil // go to next named route and remove all the previous routes until the predicate returns true.
### That's it, you've learned how to navigate between routes the default way.
However, for people who like more organized code who want to navigate with named routes, or for Flutter_web Developers who want the url to show exactly which route is being shown, and want the page refresh not to affect the state of the routes. On your site, we give you a much more elegant and functional solution. Yeah, the default navigation doesn't fully support Flutter_web, but Get does !!!!
...
...
@@ -192,7 +201,9 @@ class FirstRoute extends StatelessWidget {
icon: Icon(Icons.add),
onPressed: () {
GetBar(
title:"Hi!",message:"i'm a Get SnackBar!",
title: "Hey i'm a Get SnackBar!",
message:
"It's unbelievable! I'm using SnackBar without context, without boilerplate, without Scaffold, it is something truly amazing!",