You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a class to fetch the current theme state from shared preference. Add methods to read, write & delete data to and from shared preference.
Add a class to contain ThemeData for light and dark mode. Add method to get current theme. Add methods to set light theme and set dark theme. Store the state to shared preference using the above class you created.
The text was updated successfully, but these errors were encountered:
Dark mode will look something like this:
Hex code for
black
used:#000000
How to implement dark mode?
shared preference
. Add methods to read, write & delete data to and fromshared preference
.ThemeData
for light and dark mode. Add method to get current theme. Add methods to set light theme and set dark theme. Store the state toshared preference
using the above class you created.The text was updated successfully, but these errors were encountered: