In this video, Emmanuel Henri demonstrates how to persist data to disk by saving the counter to local disk.
- [Instructor] There might be scenarios…where you'd like to write and read to disk…and persist some values, like our counter.…This is where we can leverage dart:io…to write to our mobile disk and then read from it…when the application launches again.…Let's take a look at this.…So, the first thing we need to do is install a new package.…So, if you don't have the pubspec.yaml file open,…go to Explorer and then find the pubspec.yaml file here.…And then we'll type what this new package is.…So, we need to have the path_provider.…
And the current version is,…and again if you want to make sure…you get the latest version, you go here,…and you go to Packages,…and then type path,…and search path_provider, and then Installing,…and make sure you copy the version here.…So, your version might be a later version than mine,…so copy the one that you see in here.…So, let's go back to our project…and paste the actual version.…I don't need to have the name again.…
Save that.…And again, if you wanna make sure…that the packages are being installed,…
- Programming with Dart
- Setting up the Flutter SDK
- Setting up app simulators
- Using Flutter for iOS
- Using Flutter for Android
- Using widgets and material components
- Adding interactivity, routing, and navigation
- Reading and writing with Dart IO
- Creating HTTP requests
Skill Level Beginner
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
1. Introduction and Setup
2. UI Building
3. Use Device and SDK APIs
4. Build and Release
Resources to release to iOS1m 54s
Next steps1m 5s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.