Flutter and Backends: Persisting Data on the Local Device
When building mobile applications there is often the need to store data locally on the mobile device either across the application’s sessions or to store user preferences. Based on the size and complexity of the data there are several choices to store data locally. Discover how to use the local file system on your device to store data in files. Use the path_provider and path packages to access the application documents directory and create read and write files. Next you will use the SharedPreferences plugin to store simple data that can be expressed as key-value pairs. Then you will explore several real-world use cases for SharedPreferences and storing user preferences in an app. Finally you will investigate how to store larger amounts of structured data using an embedded SQLite. Upon course completion you will be able to select the appropriate data storage for local data persistence and integrate your Flutter application with this storage.