All SDKs

Flutter

v10.2.0

sentry_flutter

Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.

Install

These official Sentry commands come from the AllStak-managed SDK catalog.

flutter
flutter pub add sentry_flutter

Quick start

import 'package:sentry_flutter/sentry_flutter.dart';

Future<void> main() async {
  await SentryFlutter.init(
    (options) {
      options.dsn = '{{DSN}}';
      options.environment = 'production';
      options.release = '[email protected]';
      options.tracesSampleRate = 1.0;
      // Off by default. Enable only if you accept sending usernames,
      // emails and IP addresses to your telemetry backend.
      options.sendDefaultPii = false;
    },
    appRunner: () => runApp(MyApp()),
  );
}