161 Commits

Author SHA1 Message Date
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
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
0fc40da55b JournalEditor: Avoid crashing if note has no creation date
In the future when we improve the git itegration that will never happen,
but for now, it's what we have.
2020-03-02 19:57:26 +01:00
b199e4ef74 Simplify the sorting the presentation
Now we don't try to be smart and guess the sorting.

The problem was what to do when we don't have the modified/created
value. In those cases we were trying to use the fileLastModifed, but
that could get quite tricky and it wasn't obvious to the user what was
going on.

From now on - if it doesn't have a modified field, it just goes to the
end.
2020-03-01 14:17:06 +01:00
6d69217cae JournalList: Show the filename as the title when no metadata is allowed
Fixes #72
2020-03-01 13:14:13 +01:00
020c65e132 Minor cleanup 2020-02-28 14:16:05 +01:00
e1a06a439c NoteViewer: Simplify code 2020-02-28 12:42:37 +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
7c8cbdabaa JournalList: Use fileLastModified when no modified/created available 2020-02-17 16:44:37 +01:00
9f2fa7c3e4 Search: All look in the title
Fixes #64
2020-02-17 14:58:28 +01:00
d128fe61a8 MarkdownEditor: preview - Show the title even if it is empty
This way jumping between preview and editing isn't jarring as the text
doesn't need to move at all.
2020-02-13 17:19:12 +01:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00