1388 Commits

Author SHA1 Message Date
f946fe487a Editor: Make the BottomAppBar stick above the keyboard
Workaround for https://github.com/flutter/flutter/issues/26499
2020-05-05 10:20:15 +02:00
f129f2ac94 Editor: Bring back 'Move to Folder' in the dropdown menu
I cannot seem to position the BottomAppBar on top of the keyboard, and
until I can do that lets keep this action over here.

https://github.com/flutter/flutter/issues/26499
2020-05-05 10:10:56 +02:00
48b6fa21f7 NoteEditor: Build a bottom bar which shows the current folder
Also allow notes to be moved to a folder.
2020-05-05 10:00:14 +02:00
bdecc19126 ChecklistEditor: Mark note as empty is it only has one blank item 2020-05-05 10:00:01 +02:00
222697c83d Fix flutter analyze 2020-05-05 09:28:47 +02:00
ac024c5190 KaTex PoC: Add snippet of html2canvas
With this, maybe we don't even need to have a screenshot ability, and
can just pass the image encoded as a message.
2020-05-03 18:23:14 +02:00
0607bc7fb5 Add a PoC for rendering equations with KaTex
It kind of works. The main problem is that the webview shows itself and
doesn't disappear after taking a screenshot. Also, I'm having to use an
old form of the community flutter webview plugin as the official
"community" plugin, doesn't support screenshots.

Overall, not bad. It'll probably just be easier to fork the webview
completely and fix the issues I'm encountering.

on iOS; Trying to take a screenshot resulted in a crash.
2020-05-03 18:08:49 +02:00
317f75799f Add Title + FileName sorting modes 2020-05-03 16:01:21 +02:00
cfcb1d33ed RsaKey: Add a method to generate the key in another isolate
This way we won't be blocking the main thread.
2020-05-03 15:39:39 +02:00
941a4c589a RsaKeyPair: Make sure we parse public keys correctly 2020-05-03 15:15:44 +02:00
557f3c217e Allow DateTime parsing to fail 2020-05-02 13:52:56 +02:00
67bfb4b1da RsaKeyPair: Try to parse ssh public key
Failed
2020-05-02 13:44:25 +02:00
516768b692 iap: Allow exp to be null
Not sure how this can ever happen, but it's clearly being reported in
Sentry.
2020-05-02 13:33:21 +02:00
e8343f1804 Add an RsaKeyPair class
It needs a bit more testing, but with this we should be able to drop the
dependency on openssh, and instead generate the key via dart.
2020-05-02 13:32:05 +02:00
096e9cb82c ios: Update Podfile.lock 2020-05-02 13:25:21 +02:00
793660e42f ChecklistEditor: Improve focus handling
It's still a bit of a mess. I seem to be hitting this bug -
https://github.com/flutter/flutter/issues/20706 which others are also
hitting, but it seems to be closed despite a clearly reproduce test
case.
2020-05-02 02:28:30 +02:00
441202af48 StripMarkdownFormatting: Support new checklist format 2020-05-02 01:29:43 +02:00
db8e9ef43b Fix logging of settings 2020-05-01 20:59:12 +02:00
97a097e031 Bump version 2020-05-01 18:58:31 +02:00
ca3f705e27 Disable JournalEditor custom Folder when pro mode not available
In iOS - I have no idea how to handle the tax stuff, so there is no paid
version. It would therefore we weird to show a paid banner, when the
user cannot actually purchase it on ios.
2020-05-01 18:53:06 +02:00
70ec10b7bc Checklist Parser: Make it a bit more robust
Allow the space after `[ ]` to be optional. Just like in Github.
2020-05-01 18:44:38 +02:00
01db30c613 Automatically migrate from old checklist format
This way people existing checklists do not disappear
2020-05-01 18:42:18 +02:00
b919f1f2ba Follow GitHub's Checklist format
Fixes #71

It's easier to not use the Markdown parser and just go line by line and
do it myself. This does make it a bit less extensible though.
2020-05-01 18:28:13 +02:00
1bae5c7a19 Merge branch 'checklist_Format2' 2020-05-01 16:54:43 +02:00
a995a88028 Allow sharing of notes 2020-05-01 12:20:55 +02:00
39d495a1a4 PurchaseScreen: Add a fake offering so we can work with this in dev 2020-05-01 12:17:25 +02:00
fd9c8a4a47 Journal Editor Settings: Changing the default Folder is a Pro feature 2020-05-01 12:16:57 +02:00
a12026a121 JournalEditor: Allow a default folder to be specified
This way all Journal Entries can go to that folder by default. It makes
adding a new journal entry easier.

Related to #118
2020-05-01 11:38:39 +02:00
64bfefa266 Do not allow DartGit's exception to escape
DartGit is still quite experimental.
2020-05-01 11:22:02 +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
49bf02bf15 logEvent: Parameters must be <String, String>{}
Not string, dynamic. Sentry wants strings.
2020-05-01 10:50:09 +02:00
9ee16ebe50 Editor: Show ✕ or ✓ in AppBar depending on if the note has been modified
Fixes #123
2020-05-01 10:14:18 +02:00
4e593d6c2f Fix crash 2020-05-01 09:38:49 +02:00
2494f3af8f ErrorReporting: Not all Errors are exceptions 2020-05-01 09:12:18 +02:00
9973408fe5 Update README.md 2020-04-26 11:39:38 +02:00
d2650713e7 README: Add Twitter and Reddit 2020-04-26 11:28:39 +02:00
29b002b0f0 MarkdownEditor: New notes should always be in edit mode
Fixes #119
2020-04-25 21:34:22 +02:00
bc32e5bbb3 Editors: Rename autofocus to isNewNote
It's more descriptive, and lets each edit decide how it wants to handle
new notes vs existing.
2020-04-25 21:33:42 +02:00
a0247e7c9e Ignore a few more git exceptions 2020-04-23 10:08:22 +02:00
ddc7ef1d85 Bump version 2020-04-22 23:35:16 +02:00
f67300cce7 PurchaseScreen: Only show monthly offerings 2020-04-22 23:31:19 +02:00
45a57da88a Only check if subscription is valid if it has expired
This way we avoid extra network access.
2020-04-22 23:30:50 +02:00
74df0f2bbc PurchaseScreen: Allow the user to select the price
We show a range of available prices. I'm hoping people will pay
according to how much they can afford.
2020-04-22 23:12:24 +02:00
d3aa78c39b Ananlytics: Initialize firebase properly 2020-04-22 22:39:06 +02:00
152a95d4e9 Record when an action is performed on a Note/Folder
This way I'll have statistics about how the app is used and more
importantly, figuring out crash reports will be easier as there will be
a rough trail of actions.
2020-04-22 01:31:48 +02:00
c0623d1c3c Sentry: Add error breadcrumbs
This way we will have some context as to why an error happened.
2020-04-22 01:31:32 +02:00
d511dab346 Abstract out the analytics class 2020-04-22 00:51:25 +02:00
1f78dc2dfe Update dart git dependency
Removes a dependency on ini
2020-04-22 00:44:57 +02:00
e5cd9ddec2 Email Regexp: Allow dashes 2020-04-21 20:49:26 +02:00