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.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add error_catch_boundary

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  error_catch_boundary: ^1.1.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:error_catch_boundary/error_catch_boundary.dart';
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