Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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.