mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-16 13:43:17 +00:00
20 lines
460 B
Dart
20 lines
460 B
Dart
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
// import 'package:selfprivacy/config/get_it_config.dart';
|
|
|
|
class SimpleBlocObserver extends BlocObserver {
|
|
SimpleBlocObserver();
|
|
|
|
@override
|
|
void onError(
|
|
final BlocBase<dynamic> bloc,
|
|
final Object error,
|
|
final StackTrace stackTrace,
|
|
) {
|
|
// getIt<NavigationService>().showSnackBar(
|
|
// 'Bloc error: ${error.toString()}',
|
|
// );
|
|
super.onError(bloc, error, stackTrace);
|
|
}
|
|
}
|