
Sentry Flutter Sdk
Wire up Sentry in a Flutter or Dart app so crashes, traces, replay, and logs are visible before and after you ship.
Install
npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-flutter-sdkWhat is this skill?
- Opinionated wizard: Detect phase runs project probes before recommending packages or DSN setup
- Covers error monitoring, performance tracing, profiling, session replay, and structured logging for Flutter/Dart
- Targets sentry_flutter ≥9.14.0 with pointers to official Sentry Flutter platform docs
- Addresses native crashes, ANRs, and app hangs on iOS and Android
- Supports Android, iOS, macOS, Linux, Windows, and Web from one SDK path
Adoption & trust: 1k installs on skills.sh; 197 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Azure Kubernetesmicrosoft/azure-skills
Github Actions Docsxixu-me/skills
Deploy To Vercelvercel-labs/agent-skills
Vercel Cli With Tokensvercel-labs/agent-skills
Turborepovercel/turborepo
Docker Expertsickn33/antigravity-awesome-skills
Journey fit
Primary fit
Installing and configuring sentry_flutter is an integration task done while the mobile codebase is still taking shape, not a one-off growth tactic. The skill is a guided SDK integration across Android, iOS, desktop, and web targets—exactly the integrations shelf in Build.
Common Questions / FAQ
Is Sentry Flutter Sdk safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Sentry Flutter Sdk
> [All Skills](../../SKILL_TREE.md) > [SDK Setup](../sentry-sdk-setup/SKILL.md) > Flutter SDK # Sentry Flutter SDK Opinionated wizard that scans your Flutter or Dart project and guides you through complete Sentry setup — error monitoring, tracing, session replay, logging, profiling, and ecosystem integrations. ## Invoke This Skill When - User asks to "add Sentry to Flutter" or "set up Sentry" in a Flutter or Dart app - User wants error monitoring, tracing, profiling, session replay, or logging in Flutter - User mentions `sentry_flutter`, `sentry_dart`, mobile error tracking, or Sentry for Flutter - User wants to monitor native crashes, ANRs, or app hangs on iOS/Android > **Note:** SDK versions and APIs below reflect `sentry_flutter` ≥9.14.0 (current stable, February 2026). > Always verify against [docs.sentry.io/platforms/flutter/](https://docs.sentry.io/platforms/flutter/) before implementing. --- ## Phase 1: Detect Run these commands to understand the project before making any recommendations: ```bash # Detect Flutter project type and existing Sentry cat pubspec.yaml | grep -E '(sentry|flutter|dart)' # Check SDK version cat pubspec.yaml | grep -A2 'environment:' # Check for existing Sentry initialization grep -r "SentryFlutter.init\|Sentry.init" lib/ 2>/dev/null | head -5 # Detect navigation library grep -E '(go_router|auto_route|get:|beamer|routemaster)' pubspec.yaml # Detect HTTP client grep -E '(dio:|http:|chopper:)' pubspec.yaml # Detect database packages grep -E '(sqflite|drift|hive|isar|floor)' pubspec.yaml # Detect state management (for integration patterns) grep -E '(flutter_bloc|riverpod|provider:|get:)' pubspec.yaml # Detect GraphQL grep -E '(graphql|ferry|gql)' pubspec.yaml # Detect Firebase grep -E '(firebase_core|supabase)' pubspec.yaml # Detect backend for cross-link ls ../backend/ ../server/ ../api/ 2>/dev/null find .. -maxdepth 3 \( -name "go.mod" -o -name "requirements.txt" -o -name "Gemfile" -o -name "*.csproj" \) 2>/dev/null | grep -v flutter | head -10 # Detect platform targets ls android/ ios/ macos/ linux/ windows/ web/ 2>/dev/null ``` **What to determine:** | Question | Impact | |----------|--------| | `sentry_flutter` already in `pubspec.yaml`? | Skip install, jump to feature config | | Dart SDK `>=3.5`? | Required for `sentry_flutter` ≥9.0.0 | | `go_router` or `auto_route` present? | Use `SentryNavigatorObserver` — specific patterns apply | | `dio` present? | Recommend `sentry_dio` integration | | `sqflite`, `drift`, `hive`, `isar` present? | Recommend matching `sentry_*` DB package | | Has `android/` and `ios/` directories? | Full mobile feature set available | | Has `web/` directory only? | Session Replay and Profiling unavailable | | Has `macos/` directory? | Profiling available (alpha) | | Backend directory detected? | Trigger Phase 4 cross-link | --- ## Phase 2: Recommend Present a concrete recommendation based on what you found. Don't ask open-ended questions — lead with a proposal: **Recommended (core coverage — always set up these):** - ✅ **Error Monitoring** — captures Dart exceptions, Flutter framework errors, and native crashes (iOS + Android) - ✅ **Tracing** — auto-instruments navigation, app start, network requests, and UI interactions - ✅ **Session Replay** — captures widget tree screenshots for debugging (iOS + Android only) **Optional (enhanced observability):** - ⚡ **Profiling** — CPU profiling; iOS and macOS only (alpha) - ⚡ **Logging** — structured logs via `Sentry.logger.*` and `sentry_logging` integration - ⚡ **Metrics** —