Flutter is now officially supported by Bugsnag! Many thanks to the community for the previous library and for allowing us to take the bugsnag_flutter
package name.
To upgrade:
bugsnag_flutter/bugsnag.dart
is nowbugsnag_flutter/bugsnag_flutter.dart
- we recommend using single Flutter project rather than separate platform projects. To continue using existing separate projects, use ternaries like
Platform.isAndroid ? androidApiKey : iosApiKey
when usingbugsnag.start
.setUser
accepts a named ID instead of an unnamed ID in the first positionBugsnagObserver
is nowBugsnagNavigatorObserver
Bugsnag.instance
is now a globalbugsnag
Bugsnag.instance.recordError
is nowbugsnag.notify
Bugsnag.instance.recordFlutterError
should be translated asbugsnag.notify(error.exception, error.stack)
BugsnagBreadcrumb
is nowBreadcrumbType