Just change the Navigator (uppercase) to navigator (lowercase), and you will have all the functions of the standard browser, without having to use context
Just change the Navigator (uppercase) to navigator (lowercase), and you will have all the functions of the standard navigation, without having to use context
Example:
```dart
// Default Flutter navigator
Navigator.push(
Navigator.of(context).push(
context,
MaterialPageRoute(
builder:(context){
builder:(BuildContextcontext){
returnHomePage();
},
),
);
// Get with no context but Flutter sintax
// Get using Flutter syntax without needing context
navigator.push(
MaterialPageRoute(
builder:(context){
builder:(_){
returnHomePage();
},
),
);
// Get sintax (Much better, but we respect your opinion)
// Get sintax (It is much better, but you have the right to disagree)
Get.to(HomePage());
```
### SnackBars
...
...
@@ -524,8 +527,7 @@ Get.height / Get.width // Equivalent to the method: MediaQuery.of(context).size.
Get.context// Gives the context of the screen in the foreground anywhere in your code.
@deprecatedon1.17.0
vararguments=Get.args(context);// Gives current route arguments
```
This library will always be updated and implementing new features. Feel free to offer PRs and contribute to them.