7 Commits

Author SHA1 Message Date
eb2c9eb33f Note: Rename 'createdAt' to 'created'
My notes already use the key 'created', and I don't want to have to
change that.
2018-06-01 19:04:48 +02:00
5197a84959 Give the NoteEditor a state
This way its creationDate will be accurate
2018-05-24 14:52:53 +02:00
3eeb3ae54c NoteEditor: Show a confirmation dialog if discarding a note 2018-05-24 14:17:38 +02:00
b6c38dde3c Use an InheritedWidget instead of passing the callbacks
This simplifies the code quite a bit, at the cost of using this
strange flutter magic of an 'InheritedWidget'.

It basically make a class a global variable.
2018-05-24 12:33:46 +02:00
973f21a24c Give each Note a unique id
Otherwise we're overwriting that one note.
2018-05-21 17:04:03 +02:00
0cb36b2981 Make the state global and connect the add note screen
This is a huge work in progress, but it finally seems to kinda work.
2018-05-21 16:51:29 +02:00
0230ed50f5 Move Editor to its own file 2018-05-17 17:59:09 +02:00