Flutter notifier for reporting exceptions, errors and log messages to Rollbar.
A simple usage example:
import 'package:flutter/services.dart';
import 'package:rollbar_flutter/rollbar.dart';
Future<void> main() async {
const config = Config(
accessToken: 'YOUR-ROLLBAR-ACCESSTOKEN',
package: 'rollbar_flutter_example',
);
await RollbarFlutter.run(config, () => runApp(const MyApp()));
}
With this setup, rollbar-flutter
will automatically catch and report any unhandled errors in your application.
You can also explicitly report errors or messages to Rollbar:
await Rollbar.info('Nothing out of the ordinary so far...');
See the example
directory for a complete example.
- Flutter 3: version 3.0.0 and above
Logging version-specific issues, even outside of the supported versions, is welcome and they will be fixed whenever possible.
- Android: Yes
- iOS: Yes
- Web: No
- Windows: No
- macOS: No
- Linux: No
Additional platforms will be prioritized based on feedback from users.
For complete usage instructions and configuration reference, see our rollbar-flutter
SDK docs.
See our Releases page for a list of all releases and changes.
If you run into any issues, please email us at [email protected].
For bug reports, please open an issue on GitHub.
rollbar-flutter
is free software released under the MIT License. See LICENSE for details.