Flutter
dependencies:
devpul: ^0.2.0
devpul_flutter: ^0.2.0
Errors
void main() {
DevpulFlutter.install();
runApp(const MyApp());
}
Reports FlutterErrors and uncaught platform errors with stack traces. Flutter's diagnostics, such as the widget that caused the error, show under Diagnostics, and errors Flutter marks as silent (image loading, for example) carry a silent badge. Existing FlutterError.onError and PlatformDispatcher.onError handlers keep running, so crash reporters are unaffected.
Flutter web does not call PlatformDispatcher.onError (flutter#100277). To see uncaught async errors there:
runZonedGuarded(() => runApp(const MyApp()), (e, s) => Devpul.error(e, s, source: 'zone'));
debugPrint
DevpulFlutter.captureDebugPrint();
Every debugPrint line also goes to the Logs tab at level debug. Console output is unchanged.
Routes
MaterialApp(
navigatorObservers: [DevpulNavigatorObserver()],
)
Each push, pop, replace and remove becomes a route event with action, route, previous and arguments. Routes without a name show their type. Add the Routes plugin to see the navigation stack at each step. With go_router, pass the observer in GoRouter(observers: [...]).