Flutter Shared Preferences: Simple Data Storage | 2024

Published: 06 June 2024
on channel: FlutterCraft
2,008
73

Shared Preferences is one of the most popular Flutter packages, used in countless apps for simple data storage. Leveraging local storage on your device is an effective solution for managing basic data needs.

In this video, we’ll explore the Shared Preferences package in a step-by-step manner. We'll begin with a quick overview of the package and its capabilities, ensuring you not only know how to use Shared Preferences but also understand when it's the right choice.

From there, we’ll build an app that saves data to shared preferences, retrieves the data, and renders it in the app’s UI.

By the end of this video, you will:

1. Learn to implement Shared Preferences in your app
2. Gain insights on when to use local storage and Shared Preferences
3. Understand the data types supported by the Shared Preferences package
4. Master techniques for reading, writing, and clearing data from local storage

Chapters:

00:00 - Intro
00:26 - Shared Preferences Overview
01:41 - Shared Preferences Set Up
04:10 - Setting Data
06:42 - Getting Data
09:05 - Removing Data
10:06 - Bonus Code

Links:

pub.dev: https://pub.dev/packages/shared_prefe...
Starting code used in video: https://github.com/fluttercraft/share...
Bonus code: https://github.com/fluttercraft/share...


On this page of the site you can watch the video online Flutter Shared Preferences: Simple Data Storage | 2024 with a duration of hours minute second in good quality, which was uploaded by the user FlutterCraft 06 June 2024, share the link with friends and acquaintances, this video has already been watched 2,008 times on youtube and it was liked by 73 viewers. Enjoy your viewing!