Light and Dark Theme with Provider - Flutter Explained - Level: Medium
Flutter Explained
#DarkTheme and #LightTheme is one of the most popular trends in 2020. This is for me reason enough to explain on the example the provider package in #Flutter. Today in #FlutterExplained we solve the mystery of how to implement and use the provider package to create a dark and light theme depending on the users selection.
⭐️⭐️ Helpful Ressources ⭐️⭐️ Repository: https://github.com/md-weber/provider_explained_theme
⭐️⭐️ Timeline ⭐️⭐️ 00:24 - Provider and SharedPreferences Package 1:22 - Boilerplate 1:45 - ThemeData in Material 2:50 - Starting with the Boilerplate and TODO´s 4:40 - Understand how to implement a ChangeNotifier 6:00 - Implement the ThemeProvider (ChangeNotifier) 11:00 - Change the Theme 14:00 - Outro
⭐️⭐️ Follow me ⭐️⭐️ Twitter - https://twitter.com/max_myracle Github - https://github.com/md-weber Hashnode / Blog - https://hashnode.com/@Myracle
⭐️⭐️ Support ⭐️⭐️ If you read this so far, thank you once more. If you like to support me, here are some links that could help me a lot.
Buy me a coffee - You are free to donate me a coffee so I can keep up my work. https://www.buymeacoffee.com/MyracleDesign
Amazon Affiliate Link - You buy for the same price and I get a small amount of it. This leads to an amazing Flutter book that I can recommend to every beginner of flutter https://amzn.to/2uOJXON
For every developer, a must-have and better said a must-read is the Clean Code book from Uncle Bob. https://amzn.to/2u5yXMP
⭐️⭐️ Special Thanks ⭐️⭐️
Photo by Sebastian Voortman from Pexels ... https://www.youtube.com/watch?v=UC9mgd-gnS0
95152016 Bytes