mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
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.
This commit is contained in:
@ -9,6 +9,7 @@ import 'package:gitjournal/appstate.dart';
|
||||
import 'package:gitjournal/core/note.dart';
|
||||
import 'package:gitjournal/core/notes_folder.dart';
|
||||
import 'package:gitjournal/core/git_repo.dart';
|
||||
import 'package:gitjournal/utils.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:flutter_crashlytics/flutter_crashlytics.dart';
|
||||
@ -111,7 +112,7 @@ class StateContainerState extends State<StateContainer> {
|
||||
if (shouldLogGitException(e)) {
|
||||
await FlutterCrashlytics().logException(e, stacktrace);
|
||||
}
|
||||
rethrow;
|
||||
showSnackbar(context, e.cause);
|
||||
}
|
||||
await _loadNotes();
|
||||
}
|
||||
|
Reference in New Issue
Block a user