How to save to local storage using Flutter?

Reagankm picture Reagankm · Dec 28, 2016 · Viewed 100.4k times · Source

In Android, if I have the information I want to persist across sessions I know I can use SharedPreferences or create a SQLite database or even write a file to the device and read it in later.

Is there a way to save and restore data like this just using Flutter? Or would I need to write device-specific code for Android and iOS like in the services example?

Answer

Seth Ladd picture Seth Ladd · Jan 3, 2017

There are a few options: