I want to create an app using Flutter that:
- Requires user to have a password to use the app. Is FlutterSecureStorage safe enough? I want to save the password encrypted. How to do this (best algorithm)?
- Shows the changes when opening/closing the app, options like theme the user chooses. Where and how should I save data? In SharedPreferences or a database like SQLite?
- I want to know the best way to pass values between pages. Do I save the values in the SharedPreferences, or do I pass them through the navigation URL?
SQLiteif I knew I will have to deal will huge amounts of structured data.SharedPreferenceswouldn't be the best option and you should resort to some state management thingies, e.g.provider,bloc, ... I would resortStatefulWidgetsonly for keeping controllers and very minimalistic state that is strictly coupled with singleWidget, and I would use permanent storage only for data that you want to preserve between sessions as it is slower and doesn't provide any ways to listen to it.