For now the only 2 options are - automaitic and manual.
I rather name it "Automatic" instead of "After each change" as that way
I can choose to do it more frequently, if desired.
Fixes#8
This reverts commit 8f76b4d96089c4a9313a7bf15d40278afee9a6e0.
I want to make another release and this substantially changes the
existing behaviour - I thought it would be fine, but it's proving to be
challenging.
Problems -
* Many notes do not have a title and the fileName is just too ugly to
show to the user when it is an ISO8601 timestamp.
Also disable the SortedNotesFolder - it's buggy.
This simplifies using a JournalList as one doesn't need to pick between
a list of notes / notesfolder.
We're using a new SortesNotesFolder class. This way we don't continously
re-sort the notes.
And in the future we will be able to toggle the notes sorting method.
With a FAB, flushbar's snackbar is just too difficult to press. We're
reverting to the classic Scaffold and making sure we're calling it with
the correct context.
https://github.com/AndreHaueisen/flushbar/issues/64
Notes should no longer have a default comparison method. Since sorting
will soon be configurable (and is currently disabled), lets just remove
this method.
This also implements the ChangeNotifier, but additional provides more
fine grained notifications. We neeed this in order to animate the list
of notes / folders when they change.
This can sometimes lead to too many files being opened in parallel and
then failing because there aren't any file descriptors left. This patch
isn't perfect as given the directory structure we could still be loading
too many in one go, but it's a quick workaround for now.
The proper solution is to only load the Notes which need to be displayed
instead of loading all of them at startup.
I wanted to stop using .seperated as it shows some ugly artifacts when
used with IconDismissable when removing an item, and it makes it more
difficult to replace it with an AnimatedListView
It makes everything far more complicated, but at least this way the FAB
moves along with the scaffold. With Fimber, that is not the case, and it
is very annoying.