error-tracking-flutter

Configure PostHog error tracking for Flutter apps on Android and iOS.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill error-tracking-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking-flutter
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/all/skills/error-tracking-flutter
Command: npx skills add https://github.com/PostHog/skills --skill error-tracking-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostHog error tracking for Flutter applications can be added with this skill, enabling automatic error capture and centralized visibility for Flutter apps across Android and iOS.

Core Features & Use Cases

  • Auto-capture Flutter exceptions and track errors with PostHog
  • Manually capture exceptions when you have handled errors in code
  • Upload and utilize source maps to get readable stack traces for minified builds
  • Use environment variables for keys and host configuration; avoid hardcoding sensitive data

Quick Start

Install and configure the PostHog Flutter error tracking integration in your app, enable exception autocapture, and verify events in PostHog.

Frequently Asked Questions about error-tracking-flutter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Flutter errors and exceptions with PostHog?

PostHog error tracking for Flutter captures exceptions automatically and manually. You enable exception autocapture during SDK initialization and use captureException for handled errors to monitor Flutter app crashes.

How do I get readable stack traces for minified Flutter builds in PostHog?

Readable stack traces for minified Flutter builds require uploading source maps to PostHog. Source maps integration translates obfuscated production stack traces back into actionable, readable error insights.

Does PostHog error tracking work for both Android and iOS Flutter apps?

PostHog error tracking applies across Flutter mobile apps covering both Android and iOS. The integration provides centralized visibility for exceptions and crashes across both platforms.

How should I configure PostHog API keys and host for Flutter error tracking?

Flutter error tracking with PostHog requires configuring environment variables for keys and host. Using environment variables avoids hardcoding sensitive data directly in your application codebase.

What is the difference between autocapture and manual exception capture in Flutter?

Autocapture automatically tracks unhandled Flutter exceptions without code changes. Manual capture uses captureException on handled errors, allowing you to track specific caught exceptions and monitor custom error handling.