In this tutorial we're going to take a deep dive into Flutter's GetX framework extra utils ...
Change Theme #
Please do not use any higher level widget than GetMaterialApp in order to update it. This can trigger duplicate keys. A lot of people are used to the prehistoric approach of creating a "ThemeProvider" widget just to change the theme of your app, and this is definitely NOT necessary with GetX™.
You can create your custom theme and simply add it within Get.changeTheme without any boilerplate.
_from original src
if you are not familier wuth GetX framework then do check these tutorials :
GetX Framework :
[ Ссылка ]
GetX Simple State Manager :
[ Ссылка ]
GetX Reactive State Manager :
[ Ссылка ]
GetX Navigation & Routes :
[ Ссылка ]
GetX Navigation without context :
[ Ссылка ]
GetX Dependency Management :
[ Ссылка ]
GetX Utils - Internationalization :
[ Ссылка ]
enjoy the content !!
Let's keep learning & sharing ...
src : [ Ссылка ]
follow me on :
git - [ Ссылка ]
twitter - [ Ссылка ]
#flutter
#flutternepal
#getx
Change Theme (Light/Dark) | GetX | Flutter
Теги
getgetxgetx flutterget flutterflutterflutter nepalflutter in nepaliget in nepaligetx in nepaligetx librarygetx packagegetx frameworkget storagestoragegetx in flutterget flutter frameworkblocrxdartstatemanagementgetx utilsthemechange themeflutter dark themedark theme fluttergetx dark themegetx change themechangedarkmodelightmodedarkmode getxdarkmode flutterchange darkmode getx flutterdarkmode light modedark theme getx