rollbar / rollbar-flutter

Rollbar for Dart and Flutter
https://docs.rollbar.com/docs/flutter
MIT License
21 stars 27 forks source link

Starting from Flutter 3.3 catching errors via `PlatformDispatcher.onError` is now the recommended approach. #101

Closed matux closed 1 year ago

matux commented 1 year ago

I guess it's important to mention that starting from Flutter 3.3 you souldn't use runZonedGuarded to catch errors in flutter anymore. Instead PlatformDispatcher.onError is now the recommended approach.

See What's new in Flutter 3.3 and Handling Errors in Flutter docs .

Originally posted by @rfuerst87 in https://github.com/rollbar/rollbar-flutter/issues/90#issuecomment-1571392237