Flutter Shared Preferences: Simple Data Storage | 2024

Publicado el: 06 junio 2024
en el canal de: 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...


En esta página del sitio puede ver el video en línea Flutter Shared Preferences: Simple Data Storage | 2024 de Duración hora minuto segunda en buena calidad , que subió el usuario FlutterCraft 06 junio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,008 veces y le gustó 73 a los espectadores. Disfruta viendo!