Skip to content
pubscout

clarity_flutter

1.10.1, released 6 weeks ago by microsoft.com

Flutter SDK for Microsoft Clarity session replay, heatmaps and interaction analytics.

$ flutter pub add clarity_flutter

What it does

Captures user screens, taps and gestures in mobile apps and uploads the data to Microsoft Clarity. Provides session recordings, heatmaps and basic interaction insights without additional backend setup.

AI-written summary of version 1.10.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need privacy‑focused session replay and heatmaps for a Flutter mobile app
  • You want automatic web‑view capture and masking
  • You prefer a lightweight analytics SDK that requires only a few lines of code

Skip it when

  • You need offline data collection or custom event pipelines
  • You require advanced analytics features like funnels, smart events or deep custom reporting
  • Your app targets platforms other than Android or iOS

Strengths

  • Session recordings and heatmaps out of the box
  • Automatic web‑view capture and widget masking
  • Simple three‑step integration

Weaknesses

  • Limited to Android and iOS only
  • No support for smart events, funnels or advanced analytics

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
5
import 'package:clarity_flutter/clarity_flutter.dart';

void main() {
  final config = ClarityConfig(projectId: 'your_project_id');
  runApp(ClarityWidget(app: MyApp(), clarityConfig: config));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(home: Scaffold(body: Center(child: Text('Hello, Clarity!'))));
}

Alternatives

Packages that do the same job and could replace clarity_flutter.

Works with

Packages commonly used together with clarity_flutter: ones it builds on, ones built on it, and its own family.