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
ca98da4029
Update deps and fix linting issues
2023-01-20 16:14:08 +01:00
c06ca11d01
Convert a few more setting classes to GjSetting
...
Just 5 more left.
2022-11-27 19:27:03 +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
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
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
a322879077
make fmt
2022-06-26 15:15:11 +02:00
00e6f39e67
Move setup code into its own package
2022-06-26 15:08:55 +02:00
8043a27b27
Allow SSH Key type to be configurable
...
Azure only supports RSA keys.
Fixes #633
2022-06-22 11:17:19 +02:00
c56da852b6
Add more specialized snackbox functions
...
It's easier to control how the errors look this way.
2022-01-27 10:26:23 +01:00
26af60e2ce
Move domain logic out of a UI class
2022-01-22 10:26:02 +01:00
3ac63b6b08
Avoid duplication of branch name
2022-01-13 19:18:42 +01:00
f9271edad3
Upgrade to latest dart-git
...
Most of dart-git's operations are synchronous by default now. The async
functions run on another isolate.
2022-01-13 18:14:01 +01:00
439dfaa80f
ErrorScreen: Add a button to "Add a new Repo"
...
This way the user doesn't need to delete it immediately, if we can
figure out some way to fix the problem.
2021-12-16 13:15:04 +01:00
e5eb8c1576
lint: avoid-ignoring-return-values++
2021-11-17 18:10:59 +01:00
c3e7a9ffd7
lint: Add avoid_void_async
2021-11-17 18:10:59 +01:00
1438e26b18
Fix order of 'ok' in the confirmation dialog
...
As per the Material Specs it should be on te right.
2021-11-11 00:42:46 +01:00
abafd8fe01
Move Settings Widget to another folder
2021-11-07 17:40:14 +01:00
a824e1c9de
Use 'main' as the default branch
...
Causes less problems as most users are on GitHub which also uses 'main'
2021-11-07 17:28:16 +01:00
3b468f209b
Settings2: Hook up Git Settings
2021-10-30 12:55:14 +02:00
3aff78ee7f
Only let us reset --hard if it will actually do something
2021-10-23 17:33:59 +02:00
1ab8fa0434
Allow the repo to be hard reset to its remote
...
Fixes #286
2021-10-23 17:21:38 +02:00
9b51f8094e
LocaleKeys++
2021-10-23 16:50:55 +02:00
7e0a77ace3
Fix many cases of 'avoid-ignoring-return-values'
...
Now that dart-code-metrics has been updated, this lint can finally be
used. So far all of these are false positives, in the sense that I don't
care about their return values.
I wish there was an easy way of marking functions whose return value
shouldn't ever be ignored.
2021-09-27 18:39:18 +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
971253d4c8
Settings: Cleanup
2021-09-07 09:27:02 +02:00
910088a5b4
LocaleKeys++
2021-08-26 23:09:39 +02:00
3a71cca202
Move logging code to its own folder
2021-07-30 14:39:13 +02:00
2505d00dfb
Replace dart:io with universal_io
...
Platform from dart:io cannot be used on the web for reasons. And this
way we get a fake File/Directory class which we can use for atleast
running the web version, even if it won't work.
2021-07-30 11:39:26 +02:00
7fa67497bb
Split Settings into StorageConfig
2021-07-26 21:53:44 +02:00
b2e08550bb
Add GitConfig
...
This makes the Settings class smaller.
2021-07-26 20:18:22 +02:00
281ea31277
Monarch: Add most of the host setup screens
...
I've also renamed all the host setup screens with "Page" in the end.
This way it's more obvious.
2021-06-09 12:08:27 +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