This is weird. In some themes there in an internal padding, and in some
themes, there in none. I didn't think themes would affect this.
Also isDense and isCollapsed work in strange ways. I wish this was
properly documented.
I basically want to remove the left padding, and insert a normal top and
bottom padding. Is that too much to ask?
It's nice to sometimes use the RawEditor to edit something and then
later you want to see what it looks, and having to switch to the
Markdown Editor for that is very annoying.
The EditorStates are inheriting from State and using the ChangeNotifier
mixin. Both the ChangeNotifier and the State class have a dispose
function, which needs to be call.
Without this only the ChangeNotifier's dispose method was being called.
The parent sometimes changes the noteModified parameter. It's strange
for me that the stateless widgets aren't always rebuilt if their parent
widget's properties change.
This allows you to be modify the tags from the NoteEditor. Related to
#114. We still need to add some way to filter the notes by tag. Also,
the current tag editor doesn't show the tags from the other notes.
The BottomAppBar when given in the Scaffold gets hidden when the
keyboard is visible. We had hacked around that by translating its
position, however that resulted in the cursor at the bottom being hidden
when we were typing a long note.
It is not just part of the body of the scaffold.
Also converted many functions into widgets.
This adds a '+' button to the NoteEditor which allows you to add an
image from either the Gallery or Take a photo. It then accordingly adds
updates markdown.
The file is added in the same directory as the note for now.
Related to #10
Fixes#58
I've tried adding a black space under the FAB, but that just reduces the
available vertical space while typing. This does reduce the usability
for small notes, as clicking on the FAB is much easier than clicking on
top-right back button or clicking the back button twice on Android.
* 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.