Change Theme (Light/Dark) | GetX | Flutter

Опубликовано: 11 Июль 2021
на канале: Flutter Insights
453
11

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 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...  

GetX Utils - Internationalization :
   • Internationalization with GetX utils ...  


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  


#flutter
#flutternepal
#getx