Flutter Dark & Light Theme Using Provider – Damion Davy

Adding a dark and light theme options for your app is a way for your users to choose how to best use your app depending on the time of the day (or personal taste). To that end, Damion Davy created a tutorial that explains how to use the provider package to easily switch up between light and dark themes with a switch of a button. The changes in theme will not just change the background color but also the color of the font and icons.
Additionally, this article serves as a light introduction to provider, explaining you how to create a ChangeNotifier to hold data, how to modify that data and, finally, how to notify the app that you want to change something, in this case the theme of the app – Flutter Dark & Light Theme Using Provider

Leave a Comment