34 Commits

Author SHA1 Message Date
6d3b093499 Rename JournalListingScreen to FolderView 2020-03-05 01:48:50 +01:00
8a49d948f0 StateContainer: Do not call setState when the notesFolder changes
The NotesFolder is now a listenable and is always accessed via Provider,
and therefore doesn't need setState to be called when it is modified.
2019-12-08 02:58:56 +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
d607bad299 JournalListing: Only show the notes in that folder
Do not show all notes recursively, by default. The default screen will
now only show the notes in the root folder.
2019-12-04 01:30:10 +01:00
f2e40d4baf FolderListing: Indent sub-folders 2019-12-04 00:56:29 +01:00
dda557e1bf Split HomeScreen into JournalListingScreen
The HomeScreen might need to show either a JournalList or some other
kind of listing.
2019-12-02 14:07:57 +01:00
abd5f09453 Renamed NoteEditor -> JournalEditor 2019-12-02 13:56:38 +01:00
474d396ad6 Rename NoteBrowsingScreen to JournalBrowsingScreen
I'm add a different interface for viewing Notes, similar to card viewer,
and it'll be nice to have a distinction between Journal viewing and Note
Viewing. The biggest difference is that when viewing a Journal, there is
a timeline and you want to be able to easily move between Journal
entries. Whereas with notes, they aren't connected in any obvious way.
2019-12-02 13:16:55 +01:00
b7b6dc213e SearchBar: Make sure the text is visible
It seems that in dark mode the text is not visible as the primary color
remains white. This is a bug in flutter.

https://github.com/flutter/flutter/issues/32180

Thanks to William Lim for reporting.
2019-12-01 15:39:44 +01:00
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01: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
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
f1732484d7 Simplify code by using List.where 2019-09-25 17:23:46 +02:00
784ce78a2d Search: Show all the notes by default 2019-09-25 17:02:50 +02:00
5c47eeac59 Implement the most basic search functionality 2019-09-25 17:00:06 +02:00
6e5a6255a3 Move empty text inside the JournalList 2019-05-01 23:59:00 +02:00
e97300b7b1 Integration Test: Make it take a few screenshots
* Default value
* App Drawer
* Note Editing
2019-02-16 00:46:03 +01:00
07de868b26 Move Note screens in the screens folder 2019-02-15 20:49:54 +01:00
783eef32e5 HomeScreen: Show some text when we have no journal entries
Ideally, I would want something way prettier, but this is a good
enough start.
2019-02-15 15:16:08 +01:00
6fea27e0ca Show +1 notification badge after user has made a journal entry 2019-02-14 01:11:35 +01:00
acede95536 Dart: Add analysis_options
For now I've mostly tried to follow the same style guide as the flutter
repository, with many options disabled. Eventually, maybe it would make
sense to be far stricter.
2019-02-13 13:08:15 +01:00
06812d3fa1 Show a badge to indicate that the 'Git Host' has not been setup 2019-01-25 12:45:33 +01:00
a29a102667 Move git api to apis folder 2019-01-23 11:54:02 +01:00
e6648c183e Remove the old snackbar before showing a new one 2019-01-18 12:57:14 +01:00
4292555286 Pull to sync: Show a snackbar with an error message
The error message is quite basic right now -
"No Connection" or the full error returned to us by the java libraries.
But it's a start!
2019-01-16 23:20:07 +01:00
5a2b0f1f4b Allow the notes to be refreshed by pulling from the top 2019-01-15 15:26:15 +01:00
9867d607db Fix app name in AppBar 2019-01-11 20:04:13 +01:00
c30ed0c9f4 Add a sample Drawer 2018-05-25 01:17:49 +02:00
46c0abc525 NoteViewer: Implement the left/right buttons works 2018-05-25 00:09:22 +02:00
b6c38dde3c Use an InheritedWidget instead of passing the callbacks
This simplifies the code quite a bit, at the cost of using this
strange flutter magic of an 'InheritedWidget'.

It basically make a class a global variable.
2018-05-24 12:33:46 +02:00
af81fd5a45 Move a widget into its own dir 2018-05-21 18:03:56 +02:00
71d1aca6b5 Implement note deletion
It looks quite ugly, but it works.
2018-05-21 17:16:21 +02:00
0cb36b2981 Make the state global and connect the add note screen
This is a huge work in progress, but it finally seems to kinda work.
2018-05-21 16:51:29 +02:00