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.
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.
Works with
Packages commonly used together with error_stack: ones it builds on, ones built on it, and its own family.
- url_launchererror_stack depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- shared_preferenceserror_stack depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- flutter_secure_storageerror_stack depends on itSecure key-value storage using platform-specific secure mechanisms
- dioerror_stack depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- material_uierror_stack depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uierror_stack depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- nylo_supportBuilt on error_stackSupport library for the Nylo framework offering routing, networking, storage, widgets and more.
- nylo_frameworkBuilt on error_stackMicro-framework for Flutter with boilerplate, routing, MVC pattern, and CLI tooling.