flutter_error_boundary 0.1.2 copy "flutter_error_boundary: ^0.1.2" to clipboard
flutter_error_boundary: ^0.1.2 copied to clipboard

Error boundary widget that catches and handles errors gracefully in Flutter applications.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

0.1.2 - 2025-11-05 #

Changed #

  • CI/CD: Improved GitHub Actions workflow
    • Added Flutter SDK caching to speed up CI runs
    • Removed redundant test run (now runs tests with coverage only once)
    • Updated Codecov action from v3 to v4
    • Improved build job to verify package can be published (flutter pub publish --dry-run)
    • Updated Flutter version from 3.35.7 to 3.32.0 to match minimum requirement

0.1.1 - 2025-11-05 #

Fixed #

  • Linter: Removed unnecessary import of console_error_reporter.dart in cloud_error_reporter_config.dart
  • Linter: Added explicit type annotation to combinedContext map in console_error_reporter.dart
  • Tests: Removed TODO comment and improved documentation in error reporter test

0.1.0 - 2025-11-05 #

Added #

  • ConsoleErrorReporter: Added console-based error reporter for development environments that logs errors to the console

Fixed #

  • CloudErrorReporterConfig: Fixed createDevelopmentReporter to actually include console reporter when includeConsole is true
  • Performance Tests: Fixed performance test assertion to expect Text widget instead of Container
  • Error Reporter Test: Skipped error reporter test since ErrorBoundary doesn't currently support ErrorReporter parameter directly

0.0.5 - 2025-11-05 #

Changed #

  • CI/CD: Updated Flutter version in GitHub Actions workflows from 3.16.0 to 3.35.7 to support Dart SDK 3.8.0+ requirement

0.0.4 - 2025-01-05 #

Changed #

  • Git Configuration: Removed pubspec.lock files from version control and added to .gitignore

Enhanced #

  • README: Set example GIF width to 300 pixels for better display

0.0.3 - 2025-01-05 #

Fixed #

  • Example App: Fixed examples 1-6 to properly demonstrate ErrorBoundary features using ErrorBoundaryController
  • Error Recovery: Fixed automatic recovery clearing errors immediately, preventing error UI from displaying
  • Error Display: Added ErrorWidget.builder to show user-friendly error UI instead of Flutter's default red screen for build-time errors
  • Linter Errors: Fixed all linter errors in cloud error reporter implementations
    • Fixed catch clauses to use explicit exception types (on Object)
    • Added missing type annotations
    • Fixed unused catch clause warnings
    • Converted block function bodies to expression function bodies where appropriate

Enhanced #

  • Debug Logging: Added comprehensive debug logging to ErrorBoundary and ErrorBoundaryController for better debugging
  • ErrorBoundaryController: Enhanced controller with debug logging to track listener attachment and error reporting
  • Example App: Improved example app to demonstrate all ErrorBoundary features correctly
    • Examples 1-6 now use ErrorBoundaryController for programmatic error reporting
    • Example 7 demonstrates programmatic error reporting with controller
    • All examples now properly show ErrorBoundary's fallback UI

Technical Improvements #

  • Added mounted check before calling setState in ErrorBoundary to prevent errors on disposed widgets
  • Added didUpdateWidget method to handle controller changes in ErrorBoundary
  • Improved error handling flow to prevent race conditions
  • Enhanced example widgets to use controller pattern instead of throwing in build method

0.0.2 - 2025-08-30 #

Added #

  • Cloud Error Reporting Integration: Added comprehensive cloud error reporting capabilities
    • Sentry Integration: Full Sentry error reporting with DSN, project ID, environment, and release support
    • Firebase Crashlytics: Firebase Crashlytics integration for crash reporting and analytics
    • Generic HTTP Reporter: Configurable HTTP endpoint reporting with custom headers, methods, and retry logic
    • Composite Reporter: Multi-service error reporting with parallel/sequential execution options
  • Configuration Helpers: Environment-specific configuration presets
    • Production configuration for Sentry + Firebase Crashlytics
    • Development configuration with console logging and optional HTTP endpoints
    • Staging configuration with Sentry and custom HTTP endpoints
  • Enhanced Error Context: Improved error information with user data, environment details, and custom context
  • Retry Mechanisms: Configurable retry logic for failed error reports
  • User Identification: Support for user-specific error tracking and analytics
  • Performance Optimizations: Parallel error reporting for better performance

Enhanced #

  • Code Quality: Achieved perfect Pana score (160/160) for package quality
  • Documentation: Comprehensive cloud error reporting documentation and examples
  • Testing: Extended test coverage for all new cloud reporting features
  • Error Handling: Improved error handling with better fallback mechanisms
  • Platform Support: Enhanced cross-platform compatibility and testing

Technical Improvements #

  • Added http package dependency for cloud reporting capabilities
  • Improved error type definitions and severity handling
  • Enhanced error boundary controller with better error propagation
  • Optimized error reporting performance with parallel execution options
  • Better error context preservation and user data handling

0.0.1 - 2024-12-19 #

Added #

  • Initial release of flutter_error_boundary package
  • Error boundary widget that catches and handles errors gracefully
  • Support for custom error handlers and fallback UI
  • Comprehensive error reporting and logging capabilities
  • Integration with Flutter's error handling system
  • Support for both synchronous and asynchronous error handling
  • Customizable error boundaries for different widget trees
  • Built-in error recovery mechanisms
  • Support for error boundary nesting
  • Comprehensive test coverage
  • Full documentation with examples
  • Support for Flutter 3.0+ and Dart 3.0+

Technical Features #

  • Null safety support
  • Platform-agnostic implementation
  • Minimal performance overhead
  • Memory leak prevention
  • Proper error propagation
  • Integration with Flutter DevTools
  • Support for hot reload during development
1
likes
160
points
62
downloads

Publisher

verified publisherbechattaoui.dev

Weekly Downloads

Error boundary widget that catches and handles errors gracefully in Flutter applications.

Repository (GitHub)
View/report issues

Topics

#flutter #error-handling #error-boundary #widget #crash-reporting

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on flutter_error_boundary