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.
This reverts commit 333b11de7d4e67b0abd7269989609fe58c73c7ab.
We still have the "keep device from sleeping" permission. It seems we
will need to manually remove that permission. I rather have that
permission and have this super useful tool of keeping the screen on when
developing.
This way most notes can immediately be edited without clicking twice -
once to switch editors and once to focus.
In the future, we should preserve the state of the editor from the last
time so that people don't need to continously switch between notes.
* We no longer have a separate editing and browsing view - This does
mean we loose the ability to quick flip between notes by swiping.
However, this is more how a note editor would behave. I do later want to
add that capability back.
* We have 2 editors for now - Markdown and Raw. By default we use the
Markdown editor which can be toggled between Preview / Edit mode.
I later want to add a rich text editor and a todo editor as well.