4208b05bb4
NoteEditor: Only enable 'Discard Changes' option if we have changes
...
Otherwise disable the button.
2020-05-19 00:02:07 +02:00
53f02db7f4
ChecklistEditor: Rename variable
...
More accurately describes its role
2020-05-18 00:49:32 +02:00
140954e7d1
ChecklistEditor: Remove trailing empty items
2020-05-18 00:42:15 +02:00
79ece901a8
Editors: Implement didUpdateWidget
...
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.
2020-05-14 12:49:52 +02:00
4375d0cf6d
Add const
2020-05-13 01:21:40 +02:00
2847e3f60f
Add basic tag support
...
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.
2020-05-13 01:01:40 +02:00
b2d0cf44ab
Stop using deprecated TextStyle properties
2020-05-08 10:55:00 +02:00
533d837b05
ChecklistEditor: Make the Add Item more tappable
...
I would often tap on it and nothing would happen.
2020-05-08 10:15:36 +02:00
62b5761ec4
Editors: Do not use BottomAppBar in the scaffold property
...
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.
2020-05-06 15:16:37 +02:00
b26cfe8b81
Avoid mutating the state while building the Editor's bottom bar
...
getNote() mutates the state
2020-05-05 12:33:20 +02:00
b17c184900
Add very basic Image support [Android only]
...
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
2020-05-05 12:02:36 +02:00
48b6fa21f7
NoteEditor: Build a bottom bar which shows the current folder
...
Also allow notes to be moved to a folder.
2020-05-05 10:00:14 +02:00
bdecc19126
ChecklistEditor: Mark note as empty is it only has one blank item
2020-05-05 10:00:01 +02:00
793660e42f
ChecklistEditor: Improve focus handling
...
It's still a bit of a mess. I seem to be hitting this bug -
https://github.com/flutter/flutter/issues/20706 which others are also
hitting, but it seems to be closed despite a clearly reproduce test
case.
2020-05-02 02:28:30 +02:00
9ee16ebe50
Editor: Show ✕ or ✓ in AppBar depending on if the note has been modified
...
Fixes #123
2020-05-01 10:14:18 +02:00
bc32e5bbb3
Editors: Rename autofocus to isNewNote
...
It's more descriptive, and lets each edit decide how it wants to handle
new notes vs existing.
2020-04-25 21:33:42 +02:00
e98b3c3e41
Remove duplication of NoteTitleEditor
2020-03-30 12:00:50 +02:00
3e38628102
Add a 'type' to each Note
...
This way we can load the appropirate editor according to the types
available.
2020-03-19 02:36:59 +01:00
dae3d1aec9
Remove the FAB
...
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.
2020-02-28 12:34:56 +01:00
a49876e3ee
Remove the title editor if it cannot be stored
...
It just makes it confusing for the user otherwise.
2020-02-19 23:00:52 +01:00
0813429bb8
ChecklistEditor: Support autofocus for new notes
2020-02-19 17:04:53 +01:00
f6c64507c4
ChecklistEditor: Do not manually destroy the focus nodes
...
The focus node will dispose themselves
2020-02-19 17:04:17 +01:00
27ebd9686b
RawEditor: Give focus when using it for a new note
2020-02-18 16:31:34 +01:00
b4d718b131
ChecklistEditor: Allow removing the last element
...
We were throwing an exception as there wasn't anything to give focus to.
2020-02-17 01:36:07 +01:00
b5b8639edd
ChecklistEditor: Implement proper focus handling
...
Now the checklist editor is finally usable.
2020-02-17 01:33:38 +01:00
adc1039521
Bump version
2020-02-16 23:02:05 +01:00
e5a6236cfc
Checklists: Ensure there is one item at the start
2020-02-16 22:57:58 +01:00
e378ed5758
ChecklistEditor: Reduce spacing between checkbox and text
...
It looks a bit prettier now
2020-02-16 22:11:26 +01:00
e658b69039
ChecklistEditor: Remove extra padding between editor and title
2020-02-15 03:10:45 +01:00
9fc9e9f69d
ChecklistEditor: Give checked entries a disabled color
2020-02-15 03:00:32 +01:00
47819ddb4e
ChecklistEditor: Update todos
2020-02-15 02:31:11 +01:00
6a527893f5
ChecklistEditor: Strike-through text of completed items
2020-02-14 08:26:29 +01:00
fe7fd4b550
ChecklistEditor: Reserve space for the close button
...
Otherwise when the text is long after moving, the text is rearranged
which causes the entire list to move.
2020-02-13 17:19:12 +01:00
527dca5eb9
ChecklistEditor: Let the text expand into multiple lines
2020-02-13 17:19:12 +01:00
7df3e9dce0
ChecklistEditor: Allow adding an item by pressing enter
2020-02-13 17:19:12 +01:00
82b4223eb1
Checklist Editor: Swap close icon for clear
2020-02-11 23:56:38 +01:00
a9e285537b
Checklist Editor: Add some FIXMEs
2020-02-11 22:01:42 +01:00
6627f9c38a
ChecklistEditor: Try to give focus on the next item on removing
...
This doesn't seem to work reliably - it only kind-of gives the focus. I
see the 'x' on the right, but the keyboard has not been shown. Maybe
this is just an ios emulator issue.
2020-02-11 18:08:34 +01:00
e9742b249c
Checklist Editor: Give focus to newly added item after clickin on add
2020-02-11 17:48:28 +01:00
743958e4b3
Checklist Editor: Allow clicking on "Add Item" text
...
in order to add another item.
2020-02-11 17:28:27 +01:00
4c23c28671
checklist: Improve test
2020-02-10 17:27:14 +01:00
fe7d370233
Checklist: Replace reorder icon
...
It's still not the icon we want, but it's the closest there is.
2020-02-10 17:11:56 +01:00
1cd0b967de
Checklist: Let items be re-ordered
2020-02-10 17:10:54 +01:00
dbbe8589c6
Checklists: Allow items to be removed
2020-02-10 17:02:45 +01:00
8bebe91bc0
Checklist: Allow adding new items
...
It's not perfect as we don't maintain focus, but it's a great start.
2020-02-10 16:45:20 +01:00
fd791a6597
Hookup the checklist editor properly
...
It's not perfect as one cannot remove items or add new ones. But it's a
start.
2020-02-10 16:16:11 +01:00
4a93850c22
Rename todo editor to Checklist editor
...
With todos - we could get feature requests for more advanced stuff such
as due dates and all. For now I just want simple checklist support.
2020-02-09 22:55:48 +01:00