devpul_flutter 0.2.0 copy "devpul_flutter: ^0.2.0" to clipboard
devpul_flutter: ^0.2.0 copied to clipboard

Flutter error hooks for DevPul. Sends FlutterError and uncaught platform errors to the DevPul browser UI.

devpul_flutter #

Flutter hooks for DevPul. Sends FlutterError reports with Flutter's diagnostics and uncaught platform errors to the browser UI, and optionally debugPrint output and route changes.

Install #

dependencies:
  devpul: ^0.2.0
  devpul_flutter: ^0.2.0

Usage #

import 'package:devpul_flutter/devpul_flutter.dart';

void main() {
  DevpulFlutter.install();
  DevpulFlutter.captureDebugPrint(); // optional: debugPrint to the Logs tab
  runApp(MaterialApp(
    navigatorObservers: [DevpulNavigatorObserver()], // optional: route events
    home: const Home(),
  ));
}

Existing FlutterError.onError and PlatformDispatcher.onError handlers keep running, so crash reporters are unaffected.

Limits #

  • Debug builds only.
  • Flutter web does not call PlatformDispatcher.onError (flutter#100277). To see uncaught async errors there, wrap runApp in runZonedGuarded and call Devpul.error from the handler.
0
likes
160
points
244
downloads

Documentation

Documentation
API reference

Publisher

verified publishersaradgajurel.com.np

Weekly Downloads

Flutter error hooks for DevPul. Sends FlutterError and uncaught platform errors to the DevPul browser UI.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#debugging #errors #logging #flutter #devtools

License

MIT (license)

Dependencies

devpul, flutter

More

Packages that depend on devpul_flutter