error_catch_boundary 1.1.0 copy "error_catch_boundary: ^1.1.0" to clipboard
error_catch_boundary: ^1.1.0 copied to clipboard

A React-inspired error boundary package for Flutter that catches subtree build errors, prevents UI crashes, logs exceptions, and displays localized fallback UI.

1.1.0 #

  • ErrorBoundaryController: Programmatic control to reset attached error boundaries from outside the widget tree.
  • GlobalErrorBoundaryConfig: Inherited configuration widget providing app-wide default fallbackBuilder, onError logger callbacks, shouldCatch predicates, and showDebugDetails flags.
  • AutoRetryConfig: Automated retries with customizable retry intervals, max retry limits, and optional exponential backoff.
  • Selective Error Filtering (shouldCatch): Filter predicate function allowing specific exception types to be caught while letting others bubble up.
  • Debug Stack Trace Inspector: Expandable debug details view in DefaultErrorFallback (enabled automatically in kDebugMode).
  • Smooth UI Transitions: Added AnimatedSwitcher support for seamless transitions between child content and fallback UIs.
  • 100% backwards compatible with 1.0.x.

1.0.1 #

  • Updated repository and homepage URL.
  • Updated LICENSE formatting for pub.dev recognition.
  • Code formatting improvements.

1.0.0 #

  • Initial release of error_catch_boundary.
  • Catch subtree build() errors gracefully to prevent full-screen crashes.
  • Default fallback UI with built-in retry functionality.
  • Custom fallback UI builder (fallbackBuilder).
  • Automated logging callback (onError) to integrate with monitoring services like Sentry and Firebase Crashlytics.
5
likes
150
points
159
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A React-inspired error boundary package for Flutter that catches subtree build errors, prevents UI crashes, logs exceptions, and displays localized fallback UI.

Repository (GitHub)
View/report issues

Topics

#error-handling #error-boundary #ui #fallback #robustness

License

unknown (license)

Dependencies

flutter

More

Packages that depend on error_catch_boundary