Skip to content

Persiting items using shared_preferences #21

@SimonLab

Description

@SimonLab

linked to #18

At the moment we can create new task and toggle then from uncomplete to complete.
However the state of the application is not saved and each time the application is restarted the items created are lost.

Using the shared preferences package we can save a serialized version of the application state (using json).

  • The first step is to know how to initialise the state of statefull widgets with initState
  • Once the list of items is loaded from the disk we will need to save the state each time an item is created and each time an item is toggled.

see: https://pub.dev/packages/shared_preferences

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions