What are the three primary benefits of implementing client data caching in a mobile app?
Which Flutter package should you use to store simple data types like the user’s theme preference (Light/Dark mode) or a simple authentication token?
shared_preferences
Which Flutter package should you use to stores files (5MB PDF report) that the user wants to view later
path_provider
Save the PDF directly to the device Application Documents Directory
Which Flutter package should you use to stores many data (List of expenses) that the user wants to view later?
sqflite
Data is highly structured and requires complex querying (Search expenses, filter expenses)
What is the major limitation or security warning regarding shared_preferences?
flutter_secure_storage)When reading/writing files using path_provider, what is the difference between the “Temporary Directory” and the “Application Documents Directory”?
In Flutter, reading or writing to local storage (SharedPreferences, SQLite, or Files) always returns what type of object? Why?
Future, because interacting with device’s hard drive takes time, it needs async and await to prevent blocking the UI
If you see the code SharedPreferences.getInstance() followed by prefs.setBool(‘isDarkMode’, true), what caching technique is being used?
Key-Value Store (using shared_preferences package)