How to read preferences at Widget startup in Flutter?

Posted by Andre Scott | Updated on

Want to read preferences at Widget startup in Flutter? I would suggest not to use the async on initState(). but you can do this in a different way by wrapping up your SharedPreferences inside another function and declaring this as async.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers