Skip to content
pubscout

error_stack

2.2.0, released 4 days ago by nylo.dev

Error handling and debugging toolkit with a runtime dev panel and API, log, route, and storage viewers.

Uses material_ui
$ flutter pub add error_stack
Source repository

What it does

ErrorStack provides custom error screens for debug and production modes along with a built-in dev panel. The panel allows runtime inspection of API requests via Dio, console logs, navigation routes, and local storage (Secure Storage and Shared Preferences) alongside visual debugging overlays.

AI-written summary of version 2.1.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a built-in runtime dev panel to inspect API logs, route history, and local storage during development.
  • You need custom error UI for both debug mode and production releases.
  • You are using Dio and want automatic HTTP request and response logging.

Skip it when

  • You require a production-only error tracking service like Sentry or Firebase Crashlytics without a visual local debug panel.
  • You do not use Flutter or want a headless backend logger.

Strengths

  • Comprehensive built-in dev panel with multiple inspectors for storage, routes, logs, and APIs.
  • Includes visual UI debugging overlays like layout bounds, grid paper, and color blindness simulation.
  • Easy integration with Dio and navigator observers.

Weaknesses

  • Includes many dependencies such as secure storage, shared preferences, and Dio.
  • Dev panel is primarily targeted at debug workflows.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

Initialize with ErrorStack.init() and add ErrorStack.builder to MaterialApp builder.

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ErrorStack.init();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: ErrorStack.builder,
      home: HomePage(),
    );
  }
}

Alternatives

Packages that do the same job and could replace error_stack.

  • talker

    Advanced error handler and logger package for Flutter and Dart apps.

Works with

Packages commonly used together with error_stack: ones it builds on, ones built on it, and its own family.