13 Commits

Author SHA1 Message Date
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
88d5cf8713 Upgrade deps + flutter
* Also remove dart_code_metrics
2023-11-25 00:51:25 +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
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
b925da7a47 Use the generated localization instead of easy_localization
Not everywhere, but a large part of the code base.

This way, hot reloading will also reload the strings which makes for
such a better developer experience.
2022-11-19 03:02:01 +01:00
f4a1df6604 Move cloning code back into GitJournal
I want the git_setup code to only have the UI. Nothing else. The cloning
process for GitJournal is very specific to GitJournal. It doesn't need
to be that complicated for other projects.
2022-06-27 13:21:10 +02:00
4c4d5cfa71 GitSetup: Start interface classes with an I
It's easier to avoid accidentaly passing the wrong name.
2022-06-26 16:14:49 +02:00
149859b09f Setup: Stop depending on the GitConfig class
Instead mark it as an interface that must be implemented.
2022-06-26 16:12:38 +02:00
a98b652036 git_setup: Split out Keygen code 2022-06-26 15:42:24 +02:00
271284b7fe Move api tests to git_setup 2022-06-26 15:25:20 +02:00
f6c9dcc7cb Move the Github/GitLab APIs to git_setup
Only used for the setup.
2022-06-26 15:13:59 +02:00
00e6f39e67 Move setup code into its own package 2022-06-26 15:08:55 +02:00