mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Disable block error showing snack bar
This commit is contained in:
parent
ad55b204cf
commit
e15026ae25
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
import 'package:selfprivacy/config/get_it_config.dart';
|
||||
// import 'package:selfprivacy/config/get_it_config.dart';
|
||||
|
||||
class SimpleBlocObserver extends BlocObserver {
|
||||
SimpleBlocObserver();
|
||||
|
@ -11,9 +11,9 @@ class SimpleBlocObserver extends BlocObserver {
|
|||
final Object error,
|
||||
final StackTrace stackTrace,
|
||||
) {
|
||||
getIt<NavigationService>().showSnackBar(
|
||||
'Bloc error: ${error.toString()}',
|
||||
);
|
||||
// getIt<NavigationService>().showSnackBar(
|
||||
// 'Bloc error: ${error.toString()}',
|
||||
// );
|
||||
super.onError(bloc, error, stackTrace);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue