16 Commits

Author SHA1 Message Date
fbd86fa3aa NoteEditor: Remove floating action button
It comes in the way of writing.
2019-02-14 22:37:00 +01:00
acede95536 Dart: Add analysis_options
For now I've mostly tried to follow the same style guide as the flutter
repository, with many options disabled. Eventually, maybe it would make
sense to be far stricter.
2019-02-13 13:08:15 +01:00
92517d86f9 NoteEdit: Configure textCapitalization settings
Without this writing a journal is a pain as the first letter is not
automatically capitalized.
2019-01-20 15:05:10 +01:00
99392955c9 Note Editing: Show a different message
Also allow us to go back if the note has not been modified. I say note
but I really mean 'journal'. These two words are used interchangably.
2019-01-18 15:45:02 +01:00
fa5db149c8 NoteEditor: Increase padding
It feels much better typing when there is more free space, but this
might just be only on my mobile which is kinda big. How do I choose this
value in a screen independent manner?
2019-01-17 14:14:14 +01:00
a29389d4bb Note Editing: Add the NoteHeader
It looks much prettier this way.
2019-01-15 13:59:58 +01:00
7e084ac0e9 Allow Journal Entries to be editted 2019-01-15 13:39:50 +01:00
eceae0abd4 Editor: Change title to New Journal Entry 2019-01-15 13:06:22 +01:00
ca1eac6f23 Journal Editor: Change FAB icon to Check
I think it looks nicer, and adds some variety in comparison to the +
icon, which was also in the previous screen.
2019-01-12 12:27:28 +01:00
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