`drift` reactive persistence library for `Flutter` & `Dart` built on top of `sqlite`
nelsonic opened this issue Β· 3 comments
This looks like the persistence library we'll be using: [ please share alternatives if you've found any! ]
https://pub.dev/packages/drift | https://github.com/simolus3/drift | https://drift.simonbinder.eu
Looks like it's actively developed/maintained and has many contributors/users.
Has support for Web. πΈοΈ
Originally shared by @th0mas π§ as
MOOR
: dwyl/flutter-todo-list-tutorial#15 π
Todo
- Follow the Getting Started guide: https://drift.simonbinder.eu/docs/getting-started/
- Sample Todo List app: https://github.com/simolus3/drift/tree/develop/examples/app
- Create a "Hello World" example storing some basic data on the device
e.g: "last viewed time" for the page so each time you refresh the page it displays:- Current Date+Time
- Previous Date+Time
- Difference between the two so you know how much time has passed.
- Store Todo List
items
on the Device for offline-support see: dwyl/flutter-todo-list-tutorial#18
Not putting a time estimate on this because want people to take a look and discuss the work first. π¬ π
The dwyl/flutter-stopwatch-tutorial#2 PR uses drift
to persist timers within the stopwatch tutorial. I don't know if this issue makes sense as there is no need to create a Hello World
app with drift
persist because the Stopwatch repo one is effectively one.
Ok. I trust your judgement. π
Our objective is to have a simple/gentle intro to the topic. π©βπ»
If you feel it's covered, that's good. π
@nelsonic I feel like this should be marked as "completed", since it was addressed in #70 (comment)