How big is too big in flutter shared_preferences?

Issue

I am currently working on the cache handling of the app. Shared_Preferences documentation states that bigger information should be stored somewhere else, but all I work with is pretty much Arrays that can only be up to 800-900 elements long, containing simple integers.

Solution

There is basically no limit specified for storing the data in SharedPreferences
Still, its an advice to store big data in Database, because you can access Objects from it, and shared preferences can only store primitive data types(String, int, float, etc)

Answered By – Lakhwinder Singh

Answer Checked By – Marie Seifert (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *