In this tutorial we're going to take a deep dive into Flutter's GetX framework extra utils ...
Translations #
Translations are kept as a simple key-value dictionary map. To add custom translations, create a class and extend Translations.
Using translations#
Just append .tr to the specified key and it will be translated, using the current value of Get.locale and Get.fallbackLocale.
Locales #
Pass parameters to GetMaterialApp to define the locale and translations.
Change locale#
Call Get.updateLocale(locale) to update the locale. Translations then automatically use the new locale.
_from original src
Chapters :
0:00 intro
0:43 project overview
3:04 translations model class
7:52 utility controller overview
9:34 locales (translations, locale & fallback locale)
13:11 Ui structure & wireframe
14:34 utility controller states business logic
21:05 change locale
22:55 using translations
26:37 using translation with parameters
29:14 revision
33:46 conclusion
if you are not familier wuth GetX framework then do check these tutorials :
GetX Framework :
• GetX Package Library Framework | Flutter
GetX Simple State Manager :
• GetX Package Library Framework | Flutter
GetX Reactive State Manager :
• Getx/Obx | GetX Reactive State Manage...
GetX Navigation & Routes :
• Navigations & Routes | GetX Routes M...
GetX Navigation without context :
• Navigation Without Context (BottomShe...
GetX Dependency Management :
• Dependency Management | GetX Framewor...
enjoy the content !!
Let's keep learning & sharing ...
src : https://github.com/himmat12/getx_flut...
follow me on :
git - https://github.com/himmat12
twitter - / himmatrai15
Audio src :
Artist(S): Rudy Raw(Imagenero)
Provided by Lofi Girl
Watch: • Rudy Raw - Imagenero 🌄 [lofi hip hop/...
Listen: https://open.spotify.com/album/1fTaig...
Artist(S): Eugenio Izzi(Reflections in the moonlight)
Provided by Lofi Girl
Watch: • eugenio izzi - Reflections in the moo...
Listen: https://open.spotify.com/album/2IVhCT...
#flutter
#flutternepal
#getx