18 Commits

Author SHA1 Message Date
88552fe8e9 Revert "Workaround intl bug by harding 'en' locale"
This reverts commit 303192d9d575b26a77a00f7a62212f310ec1e329.
This reverts commit cd9d128b47ed523036f7ae1232ec7adcf04ed8a9.

GitJournal is used by non-English speakers (a lot in China and Russia)
and while we don't support those languages completely, we do support
them a little bit. I don't want to loose this functionality. It would be
better for us to fix the bug in intl.
2020-06-10 09:31:08 +02:00
cd9d128b47 Workaround intl bug by harding 'en' locale
https://github.com/dart-lang/intl/issues/266

This is strange since Intl.getLocale() returns 'en_US' in my case.

Currently, GitJournal only supports 'english' anyway, so this shouldn't
be a big problem.
2020-06-09 18:23:43 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
a0ea7397ee Remove unused variable 2020-04-14 16:47:47 +02:00
965639e6f2 Add the concept of Folder Settings
This contains the default editor / view / sortingMode / etc. For now the
folder settings are shared among all Folders. But the idea is that we
should be able to set different settings per folder (real or virtual)
2020-03-31 11:16:04 +02:00
cdd5d7aca0 For generated titles - prefer the provided title 2020-03-19 15:40:09 +01:00
2c361172c6 Avoid recreating DateFormats
They only need to be created once. This should result in a minor
performance gain while building the folder views.
2020-03-19 15:23:30 +01:00
d5484502df Ensure all ListTiles in FolderView are of the same height
It looks way neater this way.

https://github.com/flutter/flutter/issues/31134
2020-03-19 02:59:59 +01:00
b252f037b3 Rename NotesFolder -> NotesFolderFS
And NotesFolderReadOnly to NotesFolder. It just makes more sense this
way as we're now getting more and more different "types" of
NotesFolders.
2020-03-15 02:01:07 +01:00
59658db045 StandardView: Show the date time based on the sorting mode
Just like in the journal view.
2020-03-12 00:13:42 +01:00
7aea2611bf Allow the StandardFolderView to be customized
The customization screen is very ugly and this entire thing feels
extremely hacky with the abstractions leaking out everywhere. However,
it does work.

I'll clean it up another day.
2020-03-11 14:48:32 +01:00
d7265ec69b FolderViews: Never let a Row have a null widget
Otherwise we get an exception. This happens when a note has not loaded
and we're trying to render it. Ideally we should handle those cases with
some kind of animation instead of the current approach.
2020-03-06 19:25:00 +01:00
9ff33f51ce Remove unused imports 2020-03-05 19:15:41 +01:00
8e9b23982c Add support for a simpler filename format
Also make this the default when one doesn't have a title.

This is important as now the filename is far more visible with the new
standard view.
2020-03-05 19:14:27 +01:00
c87e6c7884 Standard Folder View: Align the title with the time correctly
As suggested by the docs it's better to use a Row and align it based on
the baseline.
2020-03-05 19:03:05 +01:00
f31e42ecef StandardView: Add date to trailing widget
Patch adapted from Ivan's pull request
- https://github.com/GitJournal/GitJournal/pull/59

It had to be reverted earlier as it was breaking functionality. But now
it works perfectly.
2020-03-05 18:54:34 +01:00
846dda252e Split the Standard Folder View
This way its code can more easily be shared
2020-03-05 18:23:33 +01:00
b25ed00830 Add the concept of a FolderView
For now we just have the StandardView which is the same as it was
previously.
2020-03-05 02:10:27 +01:00