Add a sync button to the AppBar

This somewhat shows what's going on with the network. It isn't ideal, as
is a bit ugly. But it's a start to show the network status, and what's
going on in the background.
This commit is contained in:
Vishesh Handa
2019-12-26 20:41:30 +01:00
parent f5558803c5
commit 6af3b03210
4 changed files with 140 additions and 17 deletions

View File

@ -102,7 +102,7 @@ class GitNoteRepository {
return _addNote(note, "Edited Note");
}
Future<bool> sync() async {
Future<void> sync() async {
try {
await _gitRepo.pull();
} on GitException catch (e, stacktrace) {
@ -120,8 +120,6 @@ class GitNoteRepository {
}
throw e;
}
return true;
}
}