100 Commits

Author SHA1 Message Date
f672c3eb55 flutter fix deprecations 2024-08-13 18:13:04 +02:00
7fd1c99287 Use Provider's context.read/watch
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
ea8cd35261 Fix deprecated methods 2023-02-09 16:00:29 +01:00
e974fc2533 Make the OnBoardingScreen look better in dark mode 2023-01-20 17:34:49 +01:00
758a082705 Add the OnBoarding screens to WidgetBook
The idea is for every screen and combination of parameters to be
represented in WidgetBook. This way, it'll be easy to see what all
different screens are available.

Also, building new themes will also be much easier.
2023-01-20 17:34:49 +01:00
ca98da4029 Update deps and fix linting issues 2023-01-20 16:14:08 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
6f2ce4a6b5 Port more uses of LocaleKeys to new translation system 2022-11-27 17:42:26 +01:00
ae9228f65e Use super.key
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
3ede4634a3 StatefulWidget: Mark internal variables are private 2022-01-27 12:38:57 +01:00
81b6ebe2f5 lint: avoid-ignoring-return-values++ 2021-11-17 18:10:59 +01:00
a66156c849 AppRouter: Store the routePath in each class
Instead of one global place for them.
2021-10-30 11:57:36 +02:00
6230e2b3df Rename AppSettings to AppConfig
I just want all the 'Settings' classes to the UI. In the end it really
doesn't matter. This was probably a waste of 5 minutes.
2021-10-27 20:47:57 +02:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
2cad314a4a Replace package_info with package_info_plus
The former is deprecated, and this one supports more platforms.
2021-07-19 15:32:15 +02:00
25c386b2ba Stop using deprecated methods 2021-06-06 10:39:40 +02:00
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
8c326399bd null safety++ 2021-05-25 16:33:48 +02:00
813b4c8436 Move analytics code to its own folder 2021-04-26 09:06:51 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
39644f42f3 Update all deps for null safety
Also fix new compile errors
2021-04-10 21:56:18 +02:00
9f2be5448f Migrate away from deprecated buttons
There are still some outlined buttons which need to be migrated, but
those aren't so trivial.
2021-03-24 15:36:53 +01:00
5571fdb65e Use time.dart
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01:00
bb19321c8b Send AppFirstOpen Analytics event
Again, this is sent by firebase, but I want to be able to replace
firebase pretty soon.
2020-09-30 11:27:49 +02:00
43269bbe53 Add lots of listen: false when using Provider
Provider version 4 has an assert which fires if used incorrectly.
2020-09-28 00:09:14 +02:00
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
984fc6864e Make all remaining strings translatable 2020-09-08 23:01:39 +02:00
4bcbf8226a Move onBoardingCompleted from AppState to Settings
I want to get rid of the AppState entirely. It serves exactly the same
purpose as Settings.
2020-08-16 15:29:49 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
de369fe6d9 Add 'Open Source' in the onboarding screen 2019-12-22 15:25:42 +01:00
798a744574 Change public strings of "Journal" to "Notes" 2019-12-22 15:24:00 +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
3d26ba0beb OnBoarding: Dynamically change the text size
This way it looks a bit better on smaller devices
2019-06-17 20:23:49 +02:00
406c32c2b4 flutter upgrade
The dots_indicator package seems to have changed their API without
bumping the major version number :(
2019-06-16 17:34:24 +02:00
c79249cbe1 Dart: Give all functions explicit types
It makes the code easier to understand and this way the static type
checker will catch bugs for us.
2019-06-02 15:51:43 +02:00
8e75fc0b6f Upgrade screenshot taking script to handle onboarding 2019-02-16 16:27:18 +01:00
28a430ecdb OnBoarding: Center the text 2019-02-16 13:56:57 +01:00
531f76f9fd Add the third OnBoarding Page
For me this one is the least polished, and doesn't look that great. But
for now I guess it's fine. In the future, the different parts should not
be one images, but rather multiple ones which are animated properly.
2019-02-16 13:23:31 +01:00
1c01be81b1 Add a second OnBoarding Page 2019-02-16 13:01:24 +01:00
8aa92c4908 OnBoarding buttons: Add keys
This way the flutter driver can easily find them even if the text
changes, which it probably will when I start localizing this app.
2019-02-16 12:54:15 +01:00
e5e60ef5db Create the first OnBoarding page 2019-02-16 12:25:20 +01:00
b28dc47702 OnBoarding BottomBar: Add an animation
Now the "Get Started" button opens up with an animation!
2019-02-16 12:15:33 +01:00
0a2c1d0b92 OnBoarding Bottom Bar: Show a 'Get Started' on the last page 2019-02-16 12:05:49 +01:00
c12d7b69c5 OnBoarding: Add 'Skip' and 'Next' buttons 2019-02-16 11:55:38 +01:00
c819f49afe Add a very basic onBoardingScreen 2019-02-14 01:44:57 +01:00
285a900e76 Rename OnBoarding to GitHostSetup
It was either GitHost or GitRemote.
2019-01-25 12:05:32 +01:00