Search code examples
flutterdartsharedpreferencesflutter-hiveflutter-secure-storage

which best option to store key value pair in flutter?


which plugin should I use to save data as key-value pair and some of them will be serialized objects? and is there are any differences in performance?

share prefrences, flutter secure storage or hive


Solution

  • flutter_secure_storage is stored with aes encryption and it saved as same shared_preefrences does but there is better option available with same security but with high performance hive.

    performance difference can be shown as below,

    for 1000 read iterations

    enter image description here

    1000 write iterations

    enter image description here