a759ad4a23
Combine showSnackbar code
...
It's annoying to always have to remember to call it. We had forgotten in
one place and that resulted in a lot of noise.
2020-01-27 19:02:44 +01:00
b6b49e84e4
Simplify the code
...
Now the Note's modified/created can never have a date with a year = 10
meaning a special thing.
2020-01-07 23:56:58 +01:00
011962db5d
Fix flutter analyze
2019-12-27 13:44:20 +01:00
72f1620e7e
JournalListing: Use 'modified' date if 'created' is missing / invalid
2019-12-27 11:42:33 +01:00
2b09708793
JournalListing: Show the title
...
It's no longer a simple JournalListing and instead we also show the
title. The main problem is with what to do when the title is not there.
Just leaving it blank seems to feel weird, specially when the note is
too small.
Maybe it's time to change it such that each row size is not the same.
We're effectively wasting whitespace right now for very small notes.
2019-12-27 11:34:15 +01:00
7b40cbf65f
SyncButton: Disable if no connectivity
2019-12-26 20:56:30 +01:00
bc9e308971
Move SyncButton to its own file
2019-12-26 20:56:30 +01:00
ce9a72676b
Fix Folders navigation
...
Clicking on Folders in AppBar when inside a Folder wouldn't take you
back to the Folder Listing.
2019-12-22 15:38:04 +01:00
2ba5b52f8d
Move fetch application logs to its own plugin
...
Maybe it will be useful to others. This way we're also closer to
removing almost all java / objective-c custom code.
2019-12-21 18:17:14 +01:00
591ba30762
Fix flutter analyze
2019-12-11 21:48:46 +01:00
27d5af8b01
FolderListing: Change the scaffold when a folder is selected
...
This way it's way more obvious. Also, add a back button so the user can
cancel the selection more explicitly.
2019-12-11 21:09:40 +01:00
8c6a33456a
Allow folders to be renamed
...
This is a huge change which involves -
* Implementing Folder renames on the FS + Git level
* Implementing the concept of selecting an item in the FoldersListView,
this feature isn't provided by default, and even now I'm not sure if
the semantics which I've implemented are correct. I haven't
implemented multiple folder selection for now.
Related to issue #18
Also, we're now one step closer to allowing notes to be renamed (#23 )
2019-12-06 21:32:41 +01:00
073e76bcba
AppDrawer: Try to highlight the selected route
...
This looks okayish in normal mode, but looks very ugly in dark mode, so
I'm not enabling this. But I don't want to discard this experiment, so
here I am committing this code.
2019-12-06 20:31:32 +01:00
82cfa72897
AppDrawer: Fix clicking on "Folders" when "Folders" is selected
...
This is a horrible hack, and I should figure out how to make custom
named route transitions work.
2019-12-06 20:30:50 +01:00
0a7f00af7b
Stop overwriting the default divider color
...
It can be configured from the theme if I want it to be different. The
light grey actually seems fine, for now.
2019-12-06 20:12:00 +01:00
4c2285a2cc
JournalList: Implement Hero transition
...
This was especially challenging because of this bug -
https://github.com/flutter/flutter/issues/36220
It's why we need the extra flightShuttleBuilder
2019-12-06 12:32:51 +01:00
0b161a9df4
Transition to Folders page with a fade
...
It's at the same hierarchy as 'Notes' and we shouldn't have a bottom to
top transition.
2019-12-06 12:11:39 +01:00
a51f8f170f
Make Note and NotesFolder ChangeNotifiers
...
This will allow us for finer grained notifications of when things change
so we don't have to rebuild everything, like we do currently.
2019-12-06 01:22:57 +01:00
4869c1bc70
FolderView: Make the icons the accent color
2019-12-05 18:07:49 +01:00
a39ed51abf
Divider: Use the theme color
2019-12-05 18:07:40 +01:00
e1140f0589
FolderTreeView: Make the icon bigger
2019-12-05 17:59:49 +01:00
f08d72bb00
FolderListing: Show the number of notes per folder
2019-12-05 17:48:31 +01:00
47f417ab3a
FolderTreeView: Show it expanded by default
2019-12-05 17:35:45 +01:00
0b8dcaf8f6
AppDrawer: Minor refactor
2019-12-05 17:34:43 +01:00
a504435eca
Add const
2019-12-05 17:23:19 +01:00
07ad503348
AppDrawer: Go back to the main route without stacking
...
The routing would be confusing otherwise
2019-12-05 17:22:31 +01:00
4682896592
AppDrawer: Add a divider between some elements
...
This clearly groups them together.
2019-12-05 17:19:22 +01:00
8d1feb6f76
FoldersView: Add the root folder - Call it "Notes"
...
This way the FolderView is never just empty. It looks bad otherwise.
2019-12-05 16:22:44 +01:00
ca2102a8b0
Expose the Folders view
...
This adds a new 'Folders' screen which shows you all your folders and
lets you manage the notes inside them. It currently doesn't allow you to
add or remove Folders, though.
This nearly addresses #18
2019-12-04 15:33:30 +01:00
10d65cd6fb
Rename NoteFolder -> NotesFolder
2019-12-04 15:33:27 +01:00
464b7512e9
Move Note and NoteFolder class into a core folder
2019-12-04 14:18:11 +01:00
50b8238c27
FolderListing: Hook it up to the JournalListing
...
Now clicking on a Folder shows all the notes from that folder. You can
even modify the notes, but deleting and adding notes won't work
correctly right now.
2019-12-04 01:30:23 +01:00
c8bfa0e2a0
Move FolderTreeView into its own file
2019-12-04 01:14:17 +01:00
f86a878a9c
Split AppBar Menu button into its own widget
...
Saves us the need to the GlobalKey as well.
2019-12-03 22:35:23 +01:00
04fa042f37
Add the first iterator of a different Notes View
...
This view is similar to the classical Google Keep style of showing
notes. It's still very bare-bones though
2019-12-03 22:09:03 +01:00
abd5f09453
Renamed NoteEditor -> JournalEditor
2019-12-02 13:56:38 +01:00
d5f91cb898
More prefer_const
...
It seems like flutter analyze might have some kind of cache
2019-10-20 01:24:43 +01:00
ffc0af12a3
Enable prefer_const_constructors
2019-10-20 01:11:53 +01:00
1d67e82304
Feedback/Bugs: Use @gitjournal.io email addresses
2019-10-19 15:43:28 +01:00
aea6f40940
Feedback: Always encode the URI properly
...
Encoding the URI may work on Android, but it's safter to always just
encode it, specially if we ever add a '&' in the body.
2019-10-19 11:49:05 +01:00
13d5e39c85
Feedback: Send platform name in the email
2019-10-19 11:48:14 +01:00
edb1f88a0f
ios Review: Allow it to work on ios9+
...
Also provide the app id so it works on any version!
2019-10-10 12:28:28 +02:00
57eb00a583
ios Feedback: Spaces must be properly encoded
...
We ideally should use the same method in both the bug report and
feedback, however, bug reports require an attachment, and then plugin
being used doesn't work if an email client is not installed.
https://github.com/flutter/flutter/issues/10032
2019-10-09 20:49:37 +02:00
df96467353
UndoSnackbar: Pass the StateContainer down
...
Not sure why fetching the StateContainer from the context seems to be
failing and throwing an exception.
2019-10-09 00:22:17 +02:00
7f557d3d3e
Use Flushbar for Snackbars
...
The flutter default Snackbars are a major PITA to use as they require a
Scaffold, additionaly, they will not be shown if the parent Scaffold is
destroyed, which is the case when deleting a note and returning to the
main screen.
2019-10-09 00:12:58 +02:00
69003cf0ac
Rename package from journal -> gitjournal
...
It's about time.
2019-10-07 19:30:50 +02:00
1683d4af73
JournalList: Move IconDismissable to its own widget
2019-10-07 19:04:42 +02:00
a806013554
JournalList: Swipe actions show a delete icon
...
Also changed the color to Red to make it very clear that the note is
being deleted.
2019-10-07 16:31:03 +02:00
d4718e9fc9
Search: Show a better message when not found
...
It used to show "Why don't you add a new note"
2019-10-06 12:46:06 +02:00
2606dd1a05
DrawerHeader: Use highlight color for header background
...
It's nearly the same color in a light theme, but in a dark theme it
looks way better.
2019-07-29 00:46:29 +02:00