Skip to content
pubscout

raygun4flutter

3.7.1, released 6 weeks ago by raygun.com

Official Raygun crash reporting provider for Flutter applications.

$ flutter pub add raygun4flutter
Source repository

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.

Works with

Packages commonly used together with raygun4flutter: ones it builds on, ones built on it, and its own family.