Merge branch 'master' of https://github.com/jonataslaw/getx into master
Showing
2 changed files
with
7 additions
and
2 deletions
| @@ -226,6 +226,13 @@ Navigate to new screen: | @@ -226,6 +226,13 @@ Navigate to new screen: | ||
| 226 | Get.to(NextScreen()); | 226 | Get.to(NextScreen()); | 
| 227 | ``` | 227 | ``` | 
| 228 | 228 | ||
| 229 | +Navigate to new screen with name. See more details on named routes [here](./documentation/en_US/route_management.md#navigation-with-named-routes) | ||
| 230 | + | ||
| 231 | +```dart | ||
| 232 | + | ||
| 233 | +Get.toNamed('/details'); | ||
| 234 | +``` | ||
| 235 | + | ||
| 229 | To close snackbars, dialogs, bottomsheets, or anything you would normally close with Navigator.pop(context); | 236 | To close snackbars, dialogs, bottomsheets, or anything you would normally close with Navigator.pop(context); | 
| 230 | 237 | ||
| 231 | ```dart | 238 | ```dart | 
| @@ -328,7 +335,6 @@ return GetMaterialApp( | @@ -328,7 +335,6 @@ return GetMaterialApp( | ||
| 328 | translations: Messages(), // your translations | 335 | translations: Messages(), // your translations | 
| 329 | locale: Locale('en', 'US'), // translations will be displayed in that locale | 336 | locale: Locale('en', 'US'), // translations will be displayed in that locale | 
| 330 | fallbackLocale: Locale('en', 'UK'), // specify the fallback locale in case an invalid locale is selected. | 337 | fallbackLocale: Locale('en', 'UK'), // specify the fallback locale in case an invalid locale is selected. | 
| 331 | - supportedLocales: <Locale>[Locale('en', 'UK'), Locale('en', 'US'), Locale('de','DE')] // specify the supported locales | ||
| 332 | ); | 338 | ); | 
| 333 | ``` | 339 | ``` | 
| 334 | 340 | 
| @@ -345,7 +345,6 @@ return GetMaterialApp( | @@ -345,7 +345,6 @@ return GetMaterialApp( | ||
| 345 | translations: Messages(), // suas traduções | 345 | translations: Messages(), // suas traduções | 
| 346 | locale: Locale('en', 'US'), // as traduções serão exibidas para esta localidade | 346 | locale: Locale('en', 'US'), // as traduções serão exibidas para esta localidade | 
| 347 | fallbackLocale: Locale('en', 'UK'), // especifica uma localidade em caso de falha na localidade definida | 347 | fallbackLocale: Locale('en', 'UK'), // especifica uma localidade em caso de falha na localidade definida | 
| 348 | - supportedLocales: <Locale>[Locale('en', 'UK'), Locale('en', 'US'), Locale('de','DE')] // especifica as localidades suportados | ||
| 349 | ); | 348 | ); | 
| 350 | ``` | 349 | ``` | 
| 351 | 350 | 
- 
Please register or login to post a comment