Flutter Shared Preferences: Simple Data Storage | 2024

Pubblicato il: 06 giugno 2024
sul canale di: 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...


In questa pagina del sito puoi guardare il video online Flutter Shared Preferences: Simple Data Storage | 2024 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato FlutterCraft 06 giugno 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,008 volte e gli è piaciuto 73 spettatori. Buona visione!