Flutter: What is the best practice to save general configurations of app?
832
There are loads of options. All of them are based on storing data locally though. The best are:
- Hive: https://pub.dev/packages/hive
- SQLite: https://pub.dev/packages/sqflite
- SharedPreferences: https://pub.dev/packages/flutter_secure_storage
Author by
Andranik Mkhitaryan
Updated on December 24, 2022Comments
-
Andranik Mkhitaryan over 1 year
I have a flutter application where there are some small configs such as Audio enabled/disabled. I tried to use "
package:global_configuration/global_configuration.dart
" but that is being reset after app restart. I did not include any DataBase yet and want to get rid of that as for now these configs are the only things I need to keep.