Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hacker1649/local-database
Classwork #6 - Persist Data (Read and write files)
https://github.com/hacker1649/local-database
dart flutter localstorage pathprovider persistence
Last synced: about 1 month ago
JSON representation
Classwork #6 - Persist Data (Read and write files)
- Host: GitHub
- URL: https://github.com/hacker1649/local-database
- Owner: hacker1649
- Created: 2024-04-06T20:57:24.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-06T21:18:18.000Z (10 months ago)
- Last Synced: 2024-11-08T10:48:45.543Z (3 months ago)
- Topics: dart, flutter, localstorage, pathprovider, persistence
- Language: C++
- Homepage: https://docs.flutter.dev/cookbook/persistence/reading-writing-files
- Size: 272 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# persistence
A new Flutter project.
We have to use the path_provider flutter plugin to persist data via filing https://pub.dev/packages/path_provider.
We have use the todo app tutorial that we built in class and extend it with this logic to persist the data.
To save files to disk on mobile or desktop apps, combine the path_provider plugin with the dart:io library.
This recipe uses the following steps:
1- Find the correct local path.\
2- Create a reference to the file location.\
3- Write data to the file.\
4- Read data from the file.## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.