Flutter Shared Preferences: Simple Data Storage | 2024

FlutterCraft
FlutterCraft
636 بار بازدید - ماه قبل - Shared Preferences is one of
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...
ماه قبل در تاریخ 1403/03/17 منتشر شده است.
636 بـار بازدید شده
... بیشتر