Flutter implementations of the popular state management packages and their template applications for DARK THEME
.
Pawan Kumar's(@imthepk) DevFest Application, where he used Flutter BLoC.
The source code is open sourced as well, go here to send him some love.
-
Clone the repository
-
Choose an implementation (BloC/Provider/Scoped Model)
-
Hit
flutter run
in the terminal. -
In the top right corner press the
light bulb
💡 to change the theme of the application. -
All you need is a
bool
to do this, meh (along with the Shared Preferences package)! -
Not just yet, go ahead and clean the cache, the app still gets rendered in its theme specified(once again, Shared Preferences doing its work).
Head to respective folders for instructions.
Implementing DARK MODE
is one of the ways of using state management in Flutter. You can read more about it here.
Hoping to see a lot of contributions in the project. Issues
are welcome too. Star ⭐ the Repository if it helped you.
And do not forget to tag us in @ariG23498 and @_royarg in Twitter with your applications made with this template.