43 Commits

Author SHA1 Message Date
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01:00
0a858756c8 Analytics: Log the settings
This way we can adapt the settings in the future to use the most
commonly changed items first.

We're not logging the 'gitAuthor' or 'gitEmail' as that includes
personally identifyable info.
2019-10-08 23:10:37 +02:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
c2d7841b32 Move Themes to their own file
I'm just experimenting with having different components more neatly
separated.
2019-10-07 19:18:34 +02:00
8d717cbaeb Allow Analytics collection and Crash report collection to be disabled
As the developer I really don't want users to disable these, but as
a User, I always want the option, so I should include it.
2019-10-06 12:40:49 +02:00
3d8aa2ad70 AppState: Move loading/saving to where the data lies 2019-10-04 04:35:02 +02:00
19df28cd61 Remove usused variable 2019-09-26 17:24:14 +02:00
957e493494 Add a basic dark theme
It's not that pretty, but this adds the scaffolding.
2019-09-25 15:54:37 +02:00
74d7bdd763 Use a proper logger - Fimber
It's time to start using a proper logger so we can control the number of
log messages, also - it helps to have a central configuration point for
the logs, specially since I would like to hook them up to Crashlytics in
the future.
2019-06-19 09:45:15 +02:00
d653663a47 Change Git dart API
Use a class instead of a many functions. This way we avoid passing the
same arguments again and again.
2019-06-17 19:38:56 +02:00
df0d0ed169 ios: Check if running on a physcial device
Accordingly we switch off analytics.
2019-06-14 17:50:08 +02:00
fb2cbbf3ce Decrease app boot time
We don't need to wait for all the futures, and some can be re-used.
2019-06-02 17:29:50 +02:00
f3b73df119 Disable analytics in firebase test lab
I'm also keeping analytics disabled by default.
2019-06-02 17:12:22 +02:00
d518b49623 Print out the settings
It's useful when analyzing the debug log from bug reports.
2019-05-29 11:14:21 +02:00
b07df91aa0 ios: Allow the app to be run
* Implemented a fake gitInit which just created the folder for now
* AndroidDeviceInfo doesn't exist on ios
2019-05-20 20:32:26 +02:00
0af274be2b FirebaseAnalytics: Stop using deprecated method 2019-05-20 15:19:14 +02:00
40a12b8af1 Consider emulated devices to be debug devices
So do not run analytics on them.
2019-02-16 13:56:23 +01:00
29c8da11fb Enable OnBoarding 2019-02-16 13:24:48 +01:00
e97300b7b1 Integration Test: Make it take a few screenshots
* Default value
* App Drawer
* Note Editing
2019-02-16 00:46:03 +01:00
00355c532b Add a trivial integration test which just takes a screenshot
This required refactoring the code. With this we can now write an
integration test to test the main parts of the app, but more importantly
we can automate the process of generating the screenshots.
2019-02-16 00:16:32 +01:00
c819f49afe Add a very basic onBoardingScreen 2019-02-14 01:44:57 +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
285a900e76 Rename OnBoarding to GitHostSetup
It was either GitHost or GitRemote.
2019-01-25 12:05:32 +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
e590c3c132 Do not show the 'debug' banner
It's annoying, and does not allow us to easily take screenshots.
Specially since the apps built in release mode cannot be run in an x86
android emulator.
2019-01-23 15:11:01 +01:00
75d86dfa99 Settings: Add 'GitAuthor' and 'Git Author Email'
These are just dummy values for now and cannot be actually changed.
2019-01-23 13:29:26 +01:00
2b1ac6cad7 Hookup onBoarding screen to app
* I should probably stop calling in an onboarding screen, since it's now
just a way to setup sync.

* It overall feels quite ugly, and unpolished.
2019-01-23 12:13:02 +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
4fc8201427 Add an empty Settings page 2019-01-18 13:13:13 +01:00
b322e4806d Disable analytics in debug mode
Sadly we can only do this in Android, there doesn't seem to be a way to
disable it on iOS.

https://github.com/flutter/flutter/issues/21063
2019-01-18 12:30:01 +01:00
1cddeaec00 OnBoarding: Add all relevant analytics 2019-01-14 14:01:11 +01:00
94006c3d7d Analytics: Send an event for page changes
This is not perfect as we do not get an event for the first page.

https://github.com/flutter/flutter/issues/19249
2019-01-14 13:54:54 +01:00
1df6829aea Analytics: Mark when onboarding has been completed 2019-01-14 13:27:42 +01:00
fe4f6effe7 Main OnBoading Screen: Add some padding
+ some color to the input box

I would have assumed that the background color would have come by
default.
2019-01-11 18:23:46 +01:00
d5eaefb849 Update secondary color to brown
It gives a nicer earthier feel to the app, instead of red, which is a
bit too strong.
2019-01-11 17:26:16 +01:00
88a0c73fe3 OnBoardingScreens: Get the background color from the theme
Also reduce a lot of code duplication
2019-01-10 17:07:31 +01:00
a5830ccbc4 Load the journal list after onboarding 2019-01-10 13:03:00 +01:00
38f7840113 Add some basic onboarding screens
They don't really work out since I don't quite understand how PageView
and the PageController are supposed to work.
2019-01-10 11:54:39 +01:00
2ebe2ff59c Add basic Firebase analytics 2019-01-08 22:14:11 +01:00
b6c38dde3c Use an InheritedWidget instead of passing the callbacks
This simplifies the code quite a bit, at the cost of using this
strange flutter magic of an 'InheritedWidget'.

It basically make a class a global variable.
2018-05-24 12:33:46 +02:00
71d1aca6b5 Implement note deletion
It looks quite ugly, but it works.
2018-05-21 17:16:21 +02:00
973f21a24c Give each Note a unique id
Otherwise we're overwriting that one note.
2018-05-21 17:04:03 +02:00
0cb36b2981 Make the state global and connect the add note screen
This is a huge work in progress, but it finally seems to kinda work.
2018-05-21 16:51:29 +02:00