error_stack 1.3.4 copy "error_stack: ^1.3.4" to clipboard
error_stack: ^1.3.4 copied to clipboard

ErrorStack helps you swiftly deal with errors in your Flutter applications! Custom error handling UI and logging to keep you productive.

Error Stack for Flutter #

pub package License: MIT

Simple to use #

Nylo

// Add Error Stack to your Nylo app provider
...
import 'package:error_stack/error_stack.dart';

class AppProvider {

  @override
  boot(Nylo nylo) async {
    ...
    nylo.useErrorStack(); // enables Error Stack
  }
}

Flutter App

// Add Error Stack to your main.dart file
...
import 'package:error_stack/error_stack.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  ErrorStack.init(); // Initialize Error Stack
  runApp(MyApp());
}

Once you have added Error Stack to your application, it will override the default error handling in your application.

Features #

  • Copy error message to clipboard
  • Search fix for error via Google
  • Modern UI for debug and release mode
  • Light and Dark mode support

Getting started #

Installation #

Add the following to your pubspec.yaml file:

dependencies:
  error_stack: ^1.3.4

or with Dart:

dart pub add error_stack

How to use #

The package is very simple to use.

Log Levels #

  • ErrorStackLogLevel.minimal (default)
  • ErrorStackLogLevel.verbose (shows more information)

You can set the log level when initializing Error Stack.

Nylo

import 'package:error_stack/error_stack.dart';

class AppProvider {
    
  @override
  boot(Nylo nylo) async {
     ...
     nylo.useErrorStack(logLevel: ErrorStackLogLevel.verbose);
  }
}

Flutter App

import 'package:flutter/material.dart';
import 'package:error_stack/error_stack.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  ErrorStack.init(logLevel: ErrorStackLogLevel.verbose); // Initialize Error Stack
  runApp(MyApp());
}

Try the example app to see how it works.

Changelog #

Please see CHANGELOG for more information what has changed recently.

Social #

Licence #

The MIT License (MIT). Please view the License File for more information.

3
likes
140
pub points
52%
popularity
screenshot

Publisher

verified publishernylo.dev

ErrorStack helps you swiftly deal with errors in your Flutter applications! Custom error handling UI and logging to keep you productive.

Homepage
Repository (GitHub)
View/report issues

Topics

#error-handling #error-ui #logging #custom-error

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (LICENSE)

Dependencies

flutter, flutter_secure_storage, url_launcher

More

Packages that depend on error_stack