-
-
Save AliAnilKocak/2207daa6134b3f01a355492681dcec90 to your computer and use it in GitHub Desktop.
onColorChangeSharedPreferences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onColorChange: (color) async { | |
var prefs = await SharedPreferences.getInstance(); | |
prefs.setInt('color', color.value); | |
themeColor.setColor(color); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment