raygun4flutter
3.7.1, released 6 weeks ago by raygun.com
Official Raygun crash reporting provider for Flutter applications.
What it does
Captures and sends errors, exceptions, and breadcrumbs from your Flutter app to Raygun. It supports automatic and manual error handling, version tracking, affected customer tracking, and local offline caching of reports.
AI-written summary of version 3.7.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are already using Raygun as your backend error tracking platform.
- You need to capture uncaught Flutter framework errors and asynchronous Dart exceptions.
Skip it when
- You prefer using a different error monitoring service like Sentry.
- Your application requires tracking cross-layer native crash reports without implementing native provider companions.
Strengths
- Official Raygun client for Flutter.
- Stores up to 64 crash reports locally when the device is offline and syncs them when reconnected.
- Provides breadcrumbs and custom data payload attachments.
Weaknesses
- Does not track native-level Android or iOS crashes out-of-the-box without separate native providers.
- Limited to Raygun's backend ecosystem.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 11
Requires adding INTERNET and ACCESS_NETWORK_STATE permissions in AndroidManifest.xml and initializing Raygun.init() on app startup.
Raygun.init(apiKey:'12345');
FlutterError.onError = (details) {
FlutterError.presentError(details);
Raygun.sendException(
error: details.exception,
stackTrace: details.stack,
);
};Alternatives
Packages that do the same job and could replace raygun4flutter.
- sentry_flutter
Alternative official crash reporting and error tracking package for the Sentry ecosystem.
95Compare
Works with
Packages commonly used together with raygun4flutter: ones it builds on, ones built on it, and its own family.
- uuidraygun4flutter depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- stack_traceraygun4flutter depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- json_annotationraygun4flutter depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- intlraygun4flutter depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- path_providerraygun4flutter depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- shared_preferencesraygun4flutter depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- package_info_plusraygun4flutter depends on itFlutter plugin to query app package info like version, build number and installer store.
- device_info_plusraygun4flutter depends on itProvides detailed information about the current device, make, model, and OS version.