flutter_crash_guard 2.0.0 copy "flutter_crash_guard: ^2.0.0" to clipboard
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 implement ErrorHandlingService get errorHandlingService and call handleError(operation: ..., error: ...) without a ref argument.
  • 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); or ref.errorHandlingService) and remove the ref argument from all handleError calls.
  • Added ErrorHandlingRefExtension on Riverpod Ref for 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.
  • ErrorHandlingMixin with unified handleError and automatic categorization/severity.
  • ErrorHandlingService (Firebase Crashlytics) with Flutter/platform/zoned handlers.
  • errorHandlingServiceProvider for Riverpod (override in main).
  • Optional CrashlyticsNavigatorObserver for route breadcrumbs.
8
likes
150
points
112
downloads

Publisher

unverified uploader

Weekly Downloads

State-management agnostic error handling mixin and Firebase Crashlytics integration with severity and categorization.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

dio, firebase_core, firebase_crashlytics, flutter, hooks_riverpod, package_info_plus

More

Packages that depend on flutter_crash_guard