57 Commits

Author SHA1 Message Date
f86a878a9c Split AppBar Menu button into its own widget
Saves us the need to the GlobalKey as well.
2019-12-03 22:35:23 +01:00
04fa042f37 Add the first iterator of a different Notes View
This view is similar to the classical Google Keep style of showing
notes. It's still very bare-bones though
2019-12-03 22:09:03 +01:00
abd5f09453 Renamed NoteEditor -> JournalEditor 2019-12-02 13:56:38 +01:00
d5f91cb898 More prefer_const
It seems like flutter analyze might have some kind of cache
2019-10-20 01:24:43 +01:00
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01:00
1d67e82304 Feedback/Bugs: Use @gitjournal.io email addresses 2019-10-19 15:43:28 +01:00
aea6f40940 Feedback: Always encode the URI properly
Encoding the URI may work on Android, but it's safter to always just
encode it, specially if we ever add a '&' in the body.
2019-10-19 11:49:05 +01:00
13d5e39c85 Feedback: Send platform name in the email 2019-10-19 11:48:14 +01:00
edb1f88a0f ios Review: Allow it to work on ios9+
Also provide the app id so it works on any version!
2019-10-10 12:28:28 +02:00
57eb00a583 ios Feedback: Spaces must be properly encoded
We ideally should use the same method in both the bug report and
feedback, however, bug reports require an attachment, and then plugin
being used doesn't work if an email client is not installed.

https://github.com/flutter/flutter/issues/10032
2019-10-09 20:49:37 +02:00
df96467353 UndoSnackbar: Pass the StateContainer down
Not sure why fetching the StateContainer from the context seems to be
failing and throwing an exception.
2019-10-09 00:22:17 +02: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
1683d4af73 JournalList: Move IconDismissable to its own widget 2019-10-07 19:04:42 +02:00
a806013554 JournalList: Swipe actions show a delete icon
Also changed the color to Red to make it very clear that the note is
being deleted.
2019-10-07 16:31:03 +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
2606dd1a05 DrawerHeader: Use highlight color for header background
It's nearly the same color in a light theme, but in a dark theme it
looks way better.
2019-07-29 00:46:29 +02:00
b9cd8696c2 AppDrawer Feedback: Add the Platform
This way we know if the feedback comes from ios or Android
2019-06-17 17:39:09 +02:00
9051d1e7dc Add a 'Report Bug' button
This also attaches the entire 'adb logcat' in Android. This way, we can
hopefully get useful info about why something is not working.

This currently breaks the build as we need to migrate to Android X
2019-05-20 14:35:27 +02:00
689e783bb3 AppDrawer: Send event per button
This way we can track how many % of the users started the git hosting
setup and did not complete it.
2019-05-19 19:01:11 +02:00
ad2e4ac9b1 Rename markdownToPlainText -> stripMarkdownFormatting
It better reflects what the function actually does
2019-05-13 22:57:49 +02:00
f2af5c9c75 Improve markdown to text conversion
Use a proper markdown parser to convert the text. This way more of the
formatting is correctly removed.
2019-05-13 22:36:32 +02:00
0e88479db2 JournalList: Remove #
They are jarring, as reported by a user.
2019-05-13 21:58:04 +02:00
6e5a6255a3 Move empty text inside the JournalList 2019-05-01 23:59:00 +02:00
139f1bc5cd JournalList: Show the fileName if the note has an invalid date 2019-02-16 19:57:20 +01:00
62f22ef18d Give some widgets keys
This should result in a bit of a performance boost. I'm not sure if I
understand the concept of keys correctly, though.
2019-02-16 19:32:49 +01:00
a32f01b2c4 Implement undo delete properly
This way the git History is not modified.
2019-02-15 19:58:58 +01:00
c085475d9b Feedback: Send us the version number of the app 2019-02-15 13:13:35 +01:00
9e5548dbc9 AppDrawer: Add a 'Rate us' button 2019-02-15 13:03:53 +01:00
0ff71dda2b JournalList: Add a separator between the entries 2019-02-15 12:48:55 +01:00
4344d4d618 JournalList: Make it slightly prettier
I'm not using the Theme everywhere, and I should ideally be changing
it instead of using custom fonts, but lets just go with this for now.
2019-02-15 12:23:53 +01:00
cc7774707f AppDrawer: Follow the Theme
This also looks way prettier as the icons are the same color as the
text.
2019-02-14 23:36:41 +01:00
2ec3cc6e76 AppDrawer: Add icons 2019-02-14 22:48:54 +01:00
f1413961f2 AppDrawer: Add a 'Feedback' option
This just sends an email
2019-02-14 22:46:30 +01:00
892fc07b89 App Drawer: Implement the share button
It's very basic, but it's a decent start.
2019-02-14 18:22:56 +01:00
8345f1424e Note: Rename 'fileName' to 'filePath'
A note can reside in a subfolder, so lets just use the path as an
identifier instead of using just the fileName.
2019-02-14 12:07:23 +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
b9b42d950f ListView: Remove the padding
This way it properly aligns up with the hamburger menu.

I also discovered this 'debugShowMaterialGrid' option which makes
working with padding issues much much easier.
2019-01-23 15:19:54 +01:00
4ca40ee08b Note Browsing: Allow swiping along the notes
I'd implemented an adhoc method of doing this which clearly sucked. It's
easier to just use the PageView class.
2019-01-23 13:00:49 +01:00
cdc6fd9ed7 Git: Add a simplistic way to migrate between 2 git repos
This way initially all the changes are performed on the local git repo,
and then later they are applied on the remote git repo. Currently we
just copy the files, but we should be cherry-picking each commit and
applying it properly.
2019-01-23 11:24:51 +01:00
519de8fcff Remove onboarding screen
For now just create a local git repo and commit all the changes over
there, we're going to allow the user to first see the app and use it
however they want, and later connect it to a remote git repo.

This commit breaks the app, as the on-boarding screen is no longer
connected so you cannot push to a remote app.
2019-01-21 13:43:33 +01:00
ccefc3c769 NoteHeader: Make it prettier
* Align the header better
* Show the full month name
2019-01-20 13:46:46 +01:00
c99fe854a1 Note: Replace 'id' with 'fileName'
It all just makes far more since when each Note has a fileName.

Though we don't save the fileName in the YAML header. It seems quite
redundant to do that.

Another advantage of this is that if we can read any file ending with a
'.md' in a git repo. It doesn't need to be named exactly how we want it,
and we will still save the details correctly.
2019-01-18 16:12:03 +01:00
4fc8201427 Add an empty Settings page 2019-01-18 13:13:13 +01:00
370cce523d Journal Entry Header: Show time with leading zeros 2019-01-17 14:16:18 +01:00
fc40e4cef1 JournalList: Use color from Theme
Also cleanup the code a bit
2019-01-15 14:14:29 +01:00
a29389d4bb Note Editing: Add the NoteHeader
It looks much prettier this way.
2019-01-15 13:59:58 +01:00
735698bfaa AppDrawer: Add the icon instead of my name + email
There doesn't seem to be any way to automatically get the name + email
of the user, so then there isn't anything to show. I'm adding the icon
as a placeholder. It's better than nothing.
2019-01-11 19:51:43 +01:00
eb2c9eb33f Note: Rename 'createdAt' to 'created'
My notes already use the key 'created', and I don't want to have to
change that.
2018-06-01 19:04:48 +02:00