18 Commits

Author SHA1 Message Date
39644f42f3 Update all deps for null safety
Also fix new compile errors
2021-04-10 21:56:18 +02:00
b97d8507f3 Fix missed words in rename 2021-02-15 22:45:39 +01:00
aa805f80c5 SyncButton: Show a different icon on error 2020-10-23 15:35:46 +02:00
43206219da Merge AppState into Repository
The 'AppState' was more of a Repository state, and it's easier if it
lives inside the Repository class.
2020-10-23 02:01:45 +02:00
770394a8f9 Rename StateContainer to Respository 2020-10-23 01:38:47 +02:00
984fc6864e Make all remaining strings translatable 2020-09-08 23:01:39 +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
5d7f616c6e const++ 2020-07-21 10:46:03 +02:00
5af4edda18 SyncButton: Always show the number of changes
Even when pulling/pushing
2020-06-10 12:57:53 +02:00
8636021952 SyncButton: Show number of unpushed changes
Related to #123
2020-05-01 11:09:40 +02:00
28ef551805 On sync error: Show the error a bit better
Do not show 'GitException: error'. We do not need to expose that it was
an exception.
2020-04-02 17:29:03 +02:00
a5fcb19d70 SyncButton: Use cloud download/upload instead of arrows 2020-03-30 13:04:28 +02:00
577b73ff3c SyncButton: Seperate pulling and pushing
This way we also refresh the view after the pulling, as we don't need to
wait for a push for that.
2020-03-30 13:00:28 +02:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
0c0fd17543 syncNotes: Catch the exception outside the StateContainer
The StateContainer doesn't have access to the snackbar.
2020-02-09 16:32:35 +01:00
a759ad4a23 Combine showSnackbar code
It's annoying to always have to remember to call it. We had forgotten in
one place and that resulted in a lot of noise.
2020-01-27 19:02:44 +01:00
7b40cbf65f SyncButton: Disable if no connectivity 2019-12-26 20:56:30 +01:00
bc9e308971 Move SyncButton to its own file 2019-12-26 20:56:30 +01:00