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, wraprunAppinrunZonedGuardedand callDevpul.errorfrom the handler.
Libraries
- devpul_flutter
- Flutter error hooks, debugPrint capture and route events for DevPul.