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_flutterWhat 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.
- firebase_analytics_web
Web implementation of Firebase Analytics for Flutter apps.
77Compare - amplitude_flutter
Amplitude Flutter SDK for sending analytics events to Amplitude.
90Compare - rudder_sdk_flutter
Flutter SDK for RudderStack event tracking and analytics
78Compare
Works with
Packages commonly used together with clarity_flutter: ones it builds on, ones built on it, and its own family.
- json_annotationclarity_flutter depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- fixnumclarity_flutter depends on itProvides 32‑ and 64‑bit signed fixed‑width integer types for Dart.
- imageclarity_flutter depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- protobufclarity_flutter depends on itProvides runtime support for Dart protocol buffer messages generated by protoc_plugin.
- xxh3clarity_flutter depends on itPure‑Dart implementation of the XXH3 64‑bit non‑cryptographic hash algorithm.