Showing
1 changed file
with
5 additions
and
5 deletions
| @@ -11,11 +11,6 @@ import 'root/parse_route.dart'; | @@ -11,11 +11,6 @@ import 'root/parse_route.dart'; | ||
| 11 | import 'root/root_controller.dart'; | 11 | import 'root/root_controller.dart'; |
| 12 | import 'routes/bindings_interface.dart'; | 12 | import 'routes/bindings_interface.dart'; |
| 13 | 13 | ||
| 14 | -/// It replaces the Flutter Navigator, but needs no context. | ||
| 15 | -/// You can to use navigator.push(YourRoute()) rather | ||
| 16 | -/// Navigator.push(context, YourRoute()); | ||
| 17 | -NavigatorState get navigator => Get.key.currentState; | ||
| 18 | - | ||
| 19 | extension GetNavigation on GetInterface { | 14 | extension GetNavigation on GetInterface { |
| 20 | /// **Navigation.push()** shortcut.<br><br> | 15 | /// **Navigation.push()** shortcut.<br><br> |
| 21 | /// | 16 | /// |
| @@ -1057,3 +1052,8 @@ Since version 2.8 it is possible to access the properties | @@ -1057,3 +1052,8 @@ Since version 2.8 it is possible to access the properties | ||
| 1057 | 1052 | ||
| 1058 | static GetMaterialController getxController = GetMaterialController(); | 1053 | static GetMaterialController getxController = GetMaterialController(); |
| 1059 | } | 1054 | } |
| 1055 | + | ||
| 1056 | +/// It replaces the Flutter Navigator, but needs no context. | ||
| 1057 | +/// You can to use navigator.push(YourRoute()) rather | ||
| 1058 | +/// Navigator.push(context, YourRoute()); | ||
| 1059 | +NavigatorState get navigator => Get.key.currentState; |
-
Please register or login to post a comment