added GetNotifier, improve structure, init refator from scratch
Showing
5 changed files
with
9 additions
and
15 deletions
@@ -331,9 +331,6 @@ MaterialApp( | @@ -331,9 +331,6 @@ MaterialApp( | ||
331 | // dar los argumentos actuales de currentScreen | 331 | // dar los argumentos actuales de currentScreen |
332 | Get.arguments | 332 | Get.arguments |
333 | 333 | ||
334 | -// dar argumentos de la ruta anterior | ||
335 | -Get.previousArguments | ||
336 | - | ||
337 | // dar el nombre de la ruta anterior | 334 | // dar el nombre de la ruta anterior |
338 | Get.previousRoute | 335 | Get.previousRoute |
339 | 336 |
@@ -386,9 +386,6 @@ When `.darkmode` is activated, it will switch to the _light theme_, and when the | @@ -386,9 +386,6 @@ When `.darkmode` is activated, it will switch to the _light theme_, and when the | ||
386 | // give the current args from currentScreen | 386 | // give the current args from currentScreen |
387 | Get.arguments | 387 | Get.arguments |
388 | 388 | ||
389 | -// give arguments of previous route | ||
390 | -Get.previousArguments | ||
391 | - | ||
392 | // give name of previous route | 389 | // give name of previous route |
393 | Get.previousRoute | 390 | Get.previousRoute |
394 | 391 |
@@ -321,9 +321,6 @@ Jeśli interesuje Cię jak zmieniać motywy podąrzaj za samouczkiem na Medium u | @@ -321,9 +321,6 @@ Jeśli interesuje Cię jak zmieniać motywy podąrzaj za samouczkiem na Medium u | ||
321 | // give the current args from currentScreen | 321 | // give the current args from currentScreen |
322 | Get.arguments | 322 | Get.arguments |
323 | 323 | ||
324 | -// give arguments of previous route | ||
325 | -Get.previousArguments | ||
326 | - | ||
327 | // give name of previous route | 324 | // give name of previous route |
328 | Get.previousRoute | 325 | Get.previousRoute |
329 | 326 |
@@ -229,6 +229,12 @@ Para navegar para uma próxima tela: | @@ -229,6 +229,12 @@ Para navegar para uma próxima tela: | ||
229 | Get.to(ProximaTela()); | 229 | Get.to(ProximaTela()); |
230 | ``` | 230 | ``` |
231 | 231 | ||
232 | +Para navegar para uma próxima tela com uma rota nomeada. Veja mais detalhes sobre rotas nomeadas [aqui](./documentation/pt_BR/route_management.md#navegar-com-rotas-nomeadas) | ||
233 | + | ||
234 | +```dart | ||
235 | +Get.toNamed('/detalhes'); | ||
236 | +``` | ||
237 | + | ||
232 | Para fechar snackbars, dialogs, bottomsheets, ou qualquer coisa que você normalmente fecharia com o `Navigator.pop(context)` (como por exemplo fechar a View atual e voltar para a anterior): | 238 | Para fechar snackbars, dialogs, bottomsheets, ou qualquer coisa que você normalmente fecharia com o `Navigator.pop(context)` (como por exemplo fechar a View atual e voltar para a anterior): |
233 | 239 | ||
234 | ```dart | 240 | ```dart |
@@ -395,9 +401,6 @@ Se você quiser saber mais como trocar o tema, você pode seguir esse tutorial n | @@ -395,9 +401,6 @@ Se você quiser saber mais como trocar o tema, você pode seguir esse tutorial n | ||
395 | // fornece os arguments da tela atual | 401 | // fornece os arguments da tela atual |
396 | Get.arguments | 402 | Get.arguments |
397 | 403 | ||
398 | -// fornece os arguments da rota anterior | ||
399 | -Get.previousArguments | ||
400 | - | ||
401 | // fornece o nome da rota anterior | 404 | // fornece o nome da rota anterior |
402 | Get.previousRoute | 405 | Get.previousRoute |
403 | 406 | ||
@@ -942,6 +945,9 @@ Qualquer contribuição é bem-vinda! | @@ -942,6 +945,9 @@ Qualquer contribuição é bem-vinda! | ||
942 | - [Firestore User with GetX™ | Todo App](https://www.youtube.com/watch?v=BiV0DcXgk58) - Video by Amateur Coder. (inglês) | 945 | - [Firestore User with GetX™ | Todo App](https://www.youtube.com/watch?v=BiV0DcXgk58) - Video by Amateur Coder. (inglês) |
943 | - [Firebase Auth with GetX™ | Todo App](https://www.youtube.com/watch?v=-H-T_BSgfOE) - Video by Amateur Coder. (inglês) | 946 | - [Firebase Auth with GetX™ | Todo App](https://www.youtube.com/watch?v=-H-T_BSgfOE) - Video by Amateur Coder. (inglês) |
944 | - [The Flutter GetX™ Ecosystem ~ State Management](https://medium.com/flutter-community/the-flutter-getx-ecosystem-state-management-881c7235511d) - State management by [Aachman Garg](https://github.com/imaachman). (inglês) | 947 | - [The Flutter GetX™ Ecosystem ~ State Management](https://medium.com/flutter-community/the-flutter-getx-ecosystem-state-management-881c7235511d) - State management by [Aachman Garg](https://github.com/imaachman). (inglês) |
948 | +- [The Flutter GetX™ Ecosystem ~ Dependency Injection](https://medium.com/flutter-community/the-flutter-getx-ecosystem-dependency-injection-8e763d0ec6b9) - Dependency Injection by [Aachman Garg](https://github.com/imaachman). (inglês) | ||
945 | - [GetX™, the all-in-one Flutter package](https://www.youtube.com/watch?v=IYQgtu9TM74) - A brief tutorial covering State Management and Navigation by Thad Carnevalli. (inglês) | 949 | - [GetX™, the all-in-one Flutter package](https://www.youtube.com/watch?v=IYQgtu9TM74) - A brief tutorial covering State Management and Navigation by Thad Carnevalli. (inglês) |
946 | - [Build a To-do List App from scratch using Flutter and GetX™](https://www.youtube.com/watch?v=EcnqFasHf18) - UI + State Management + Storage video by Thad Carnevalli. (inglês) | 950 | - [Build a To-do List App from scratch using Flutter and GetX™](https://www.youtube.com/watch?v=EcnqFasHf18) - UI + State Management + Storage video by Thad Carnevalli. (inglês) |
947 | - [GetX™ Flutter Firebase Auth Example](https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2) - Article by Jeff McMorris. (inglês) | 951 | - [GetX™ Flutter Firebase Auth Example](https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2) - Article by Jeff McMorris. (inglês) |
952 | +- [Flutter State Management with GetX – Complete App](https://www.appwithflutter.com/flutter-state-management-with-getx/) - by App With Flutter. (inglês) | ||
953 | +- [Flutter Routing with Animation using Get Package](https://www.appwithflutter.com/flutter-routing-using-get-package/) - by App With Flutter. (inglês) |
@@ -389,9 +389,6 @@ Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark()); | @@ -389,9 +389,6 @@ Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark()); | ||
389 | // 给出当前页面的args。 | 389 | // 给出当前页面的args。 |
390 | Get.arguments | 390 | Get.arguments |
391 | 391 | ||
392 | -// 给出上一条路由的参数 | ||
393 | -Get.previousArguments | ||
394 | - | ||
395 | //给出以前的路由名称 | 392 | //给出以前的路由名称 |
396 | Get.previousRoute | 393 | Get.previousRoute |
397 | 394 |
-
Please register or login to post a comment