Logo

pub package ci License: MIT

Sentry integration for Refena.

sentry

Setup

Add the following dependencies to your pubspec.yaml:

# pubspec.yaml
dependencies:
  refena_sentry: <version>

Add the RefenaSentryObserver:

void main() async {
  await SentryFlutter.init(
    (options) {
      options.dsn = 'https://example@sentry.io/example';
    },
    appRunner: () {
      runApp(
        RefenaScope(
          observers: [
            RefenaSentryObserver(), // <-- Add the observer
          ],
          child: MyApp(),
        ),
      );
    },
  );
}

Libraries

refena_sentry