flutter_crash_guard 2.0.0
flutter_crash_guard: ^2.0.0 copied to clipboard
State-management agnostic error handling mixin and Firebase Crashlytics integration with severity and categorization.
2.0.0 #
- Breaking: Mixin no longer takes
Ref; you must implementErrorHandlingService get errorHandlingServiceand callhandleError(operation: ..., error: ...)without arefargument. - State-management agnostic: supply the service via the getter with any DI (Riverpod, Provider, GetIt, Bloc, GetX).
- Migration: add the getter (e.g. for Riverpod:
ErrorHandlingService get errorHandlingService => ref.read(errorHandlingServiceProvider);orref.errorHandlingService) and remove therefargument from allhandleErrorcalls. - Added
ErrorHandlingRefExtensionon RiverpodReffor convenience:ref.errorHandlingService.
1.0.1 #
- Updated SDK constraint to
^3.10.8. - Updated dependencies: hooks_riverpod, dio, firebase_core, firebase_crashlytics, package_info_plus, flutter_lints.
1.0.0 #
- Initial release.
ErrorHandlingMixinwith unifiedhandleErrorand automatic categorization/severity.ErrorHandlingService(Firebase Crashlytics) with Flutter/platform/zoned handlers.errorHandlingServiceProviderfor Riverpod (override in main).- Optional
CrashlyticsNavigatorObserverfor route breadcrumbs.