refena_sentry 0.1.2 refena_sentry: ^0.1.2 copied to clipboard
Adds Sentry integration to the Refena state management library.
Sentry integration for Refena.
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(),
),
);
},
);
}