173 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
267ecb7499 Implement a very basic file system view
This will show all the files and not just the "notes". This way the user
can easily figure out why a file isn't included in the list of notes.

It's currently disabled by default as it clearly needs a lot more work.
2020-06-10 00:54:15 +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
daf04b9fe0 Fix folder short names 2020-06-04 14:38:11 +02:00
60de996761 Note Tag Editor: Add a FAB
It's not obvious that you can click on the app bar to start typing.
2020-06-04 14:14:42 +02:00
d1677327c2 Do not show the Markdown Editor for txt files
Fixes #55
2020-06-02 00:33:36 +02:00
2a35ea7c38 BugReport: Send bug reports with new logs
Earlier we used to call 'adb logcat' and get all the logs and send
those. This didn't work on iOS and we wouldn't get all the logs even in
android at times as the logcat buffer can be unreliable.

Since now we log all the messages to a file, we can just send that file.
The disadvtange is that we only get Dart level logs, and not iOS or Java
or NDK or our C libraries logs.

I should really dump libgit2 ASAP.
2020-05-31 02:42:58 +02:00
d3fb2b7119 Try to make the backlinks section prettier
I'm not totally convinced that it should be here.
2020-05-26 18:05:50 +02:00
36f31e06bb Move NoteBacklinks Widget to its own file 2020-05-26 17:07:57 +02:00
96ed70f023 Show the backlinks of a Note
This is the initial proof of concept and doesn't look very pretty. It's
also not very efficient.

Related to #141
2020-05-26 15:37:09 +02:00
e047787e29 KatexWidget: Cache the generated images
The file is stored in the tmp dir with the filename of
"katex_$HASH$.png" where $HASH$ is the md5 hash of the input string to
be rendered.

The cache isn't ever cleared so far, but maybe the underlying OS will do
that automatically?

Related to #125
2020-05-19 19:44:37 +02:00
9167398309 KatexWidget: Allow multiple widgets to exist
Since there can be only one instance of the WebView, we need to lock in
between render calls to the webview.

Related to #125
2020-05-19 19:31:14 +02:00
fb48fc648d KatexWidget: Make the background transparent
Related to #125
2020-05-19 18:55:34 +02:00
ce201aa390 Add an experimental Katex rendering Widget
Related to #125

This still needs to be integrated into the Flutter Markdown renderer.
But the good news is that this works!

It currently requires network access to download the katex scripts. It
does NOT send the katex string to any server. The rendering is performed
in the app.
2020-05-19 18:36:16 +02:00
816cb0c3ed Reduce code duplication
Avoid code for determining the publicName of a folder.
2020-05-18 00:23:14 +02:00
ef57e263ba ProSettingsOverlay -> ProOverlay
Also move it to its own file
2020-05-14 16:10:09 +02:00
5c04bf204e Add Tags sidebar
Fixes #114

This was there because I couldn't figure out how to configure Billing in
iOS, now that it is done, I can have the pro mode in iOS as well.
2020-05-14 16:09:22 +02:00
a959101010 Make some strings translatable
Instead of hard-coding the strings.
2020-05-14 12:00:40 +02:00
b7124b37bb Note Tag Editor: Capture back button
This way the tags are even updated with the back button.
2020-05-13 01:37:06 +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
faf561f104 Allow configuring the Home Screen
It can either be the Folders view or the All Notes view.
2020-05-08 19:30:53 +02:00
cc45894a07 Simplify page transition code
This way each time we can just use pushNamed instead of having to
construct the MaterialPageRoute each time.
2020-05-08 17:53:59 +02:00
cc8d7d24f9 Update flutter_email_sender 2020-05-08 16:56:07 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
81eb605e98 MarkdownViewer: Use EditorScrollView
This way we don't show that annoying animation, and we now occupy the
entire available width. Otheriwse if you had text which was required
scrolling, but only had 1 word in each line, then you couldn't scroll by
dragging on the empty area as the widget didn't occupy that space.
2020-05-06 14:27:49 +02:00
f421b61fd4 Editor: Replace the scroll view
This one supresses the top glow animation, has a decent padding by
default, and occupies the entire space of its parent.
2020-05-06 14:20:56 +02:00
8636021952 SyncButton: Show number of unpushed changes
Related to #123
2020-05-01 11:09:40 +02:00
1a52fb754d AppMenuButton: Remove badge for when git remote not configured
I cannot seem to get it to look nice with this new version of Badges and
now I'm reconsidering if it should be shown at all. The user doesn't
**need** to setup the git repo. This app can be used without it
perfectly fine.
2020-05-01 11:04:21 +02:00
3c3c49e099 Search: Check if filename matches
Fixes #95

We really need search highlighting to showcase why an item matched while
searching. Additionally, soon we may need to give the user control over
what all should be searched.
2020-04-20 00:37:48 +02:00
d81041802a MarkdownView: Use CachedNetworkImage
This is the simplest way I could find of showing a placeholder and
loading screen while the image was downloading. I'm not sure if I want
to cache the images locally.

Also, this adds lots of dependencies, which I'm not too comfortable
with.
2020-04-17 10:27:21 +02:00
9a77afcbfd Do not allow / in the filename
Fixes #102
2020-04-15 14:02:36 +02:00
dbeb1cdbe5 Remove hero from note_viewer
We now show the NoteEditor directly, so this hero doesn't really do
much.
2020-04-14 18:27:16 +02:00
d724dfb8ad Implement basic IAP support for Android
It's very ugly, but it works.
2020-04-10 12:58:21 +02:00
20a5ad8043 AppDrawer: Only show Pro Mode button if we aren't in Pro Mode 2020-04-08 14:18:47 +02:00
49f4e334dc Add a very basic purchase screen
Along with a 'Go Pro' option in the sidebar. This is extremely ugly and
is therefore disabled by default right now.
2020-04-06 19:26:09 +02:00
531eb6f3ae Dismissable: Increase threshold to 60%
A number of users have complained that they currently land up deleting
note accidentally because of the swipe gesture.
2020-04-06 17:14:50 +02:00
9e60a74c19 Allow opening relative links while are notes 2020-04-02 19:34:54 +02:00
28ef551805 On sync error: Show the error a bit better
Do not show 'GitException: error'. We do not need to expose that it was
an exception.
2020-04-02 17:29:03 +02:00
c322691614 ios: Fix report bug button
We don't have logs on ios
2020-04-02 17:17:32 +02:00
46590aff48 Markdown: Show images
At least show existing images. The path needs to be relative

Related to #10
2020-03-31 14:11:01 +02:00
c2b78f0ae7 EditorSelector: Make it prettier 2020-03-30 13:36:07 +02:00
564fa4cbc0 move NoteEditorSelector to its own file 2020-03-30 13:09:19 +02:00
a5fcb19d70 SyncButton: Use cloud download/upload instead of arrows 2020-03-30 13:04:28 +02:00
577b73ff3c SyncButton: Seperate pulling and pushing
This way we also refresh the view after the pulling, as we don't need to
wait for a push for that.
2020-03-30 13:00:28 +02:00
86ae88bae0 AppDrawer: Highlight the current selected route 2020-03-21 00:27:26 +01:00
610c4ea8a7 Allow the default folder for new notes to be configured
In the "All Notes" screen
2020-03-21 00:14:38 +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
f4dd4fd148 Add experimental card view
This notes are displayed as cards. This is meant to emulate a more
google keep style.
2020-03-12 14:23:15 +01:00
48f4d52c40 AppDrawer: Change header to "All Notes" 2020-03-12 01:40:55 +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