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: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 {
|
class SimpleBlocObserver extends BlocObserver {
|
||||||
SimpleBlocObserver();
|
SimpleBlocObserver();
|
||||||
|
@ -11,9 +11,9 @@ class SimpleBlocObserver extends BlocObserver {
|
||||||
final Object error,
|
final Object error,
|
||||||
final StackTrace stackTrace,
|
final StackTrace stackTrace,
|
||||||
) {
|
) {
|
||||||
getIt<NavigationService>().showSnackBar(
|
// getIt<NavigationService>().showSnackBar(
|
||||||
'Bloc error: ${error.toString()}',
|
// 'Bloc error: ${error.toString()}',
|
||||||
);
|
// );
|
||||||
super.onError(bloc, error, stackTrace);
|
super.onError(bloc, error, stackTrace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue