Want to spice up your lists? Use an AnimatedList, adding smooth 60fps animations to your content. Learn here now!


So you want to save your data permanently on your Flutter App but you don’t want to use a database?

That’s where the SharedPreferences package comes in. You can save key pair values in String format, but that’s not the only thing you can do. You can save data in JSON format, which is a lot more useful. How can I do that, you ask? Well, let’s find out.

Interested in more Flutter articles? https://morthor.medium.com/flutter-animatedlist-sizetransition-dismissible-dce49c11200d

Installing the package

Visit pub.dev to find the latest version of the SharedPreferences package and copy it into your pubspec.yaml. Don’t forget to run flutter pub get to…

João Soares

Head of Software Engineering — Flutter Developer — StackOverflower http://tinyurl.com/joaosoares-so — Youtuber http://tinyurl.com/joaosoares-yt

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store