Skip to content

Flutter session replay

Flutter replay that reads widgets, not pixels

Most mobile replay tools record a Flutter app as a stream of screenshots. AnyReplay reads what Flutter already knows — the element tree says what each widget is, the render tree says where it sits — and records a wireframe of boxes and words. Small on the wire, masked on the device, and readable in any language.

0
screenshots taken
2
lines in main.dart
500 ms
screen read every
sends nothing
unchanged screen
A phone-shaped glass slab dissolving into a lattice of glowing wireframe rectangles and nodes

Why not screenshots

A screenshot is pixels, and pixels cannot be translated, searched or masked word by word. A picture of a Turkish checkout screen cannot be turned into an English one. A tool whose reason to exist is showing a session in a language the reviewer reads cannot throw the words away on the way in, so the Flutter SDK has no screenshot fallback at all.

What the recorder reads

Every 500 ms, between frames and never during one, the SDK walks Flutter’s element tree and notes what each widget is and what it says: a Text with its string and style, a TextField with its hint and label, a Switch that is on, the name of an Icon, the address of an Image. Each render object says where the widget sits on screen and how it is drawn. Together they describe the screen well enough to replay it as a wireframe: boxes in the right places with the right words in them.

  • The first frame of a screen is a few kilobytes, and every frame after it carries only what changed.
  • A screen that does not change sends nothing.
  • Buttons, switches, checkboxes, sliders, pickers and progress indicators are recorded with their state, Material and Cupertino alike.
  • Dialogs, menus and bottom sheets are layers over the screen they open on.
  • A tap is recorded when the finger lifts, so a scroll or a drag is never mistaken for one; three taps on the same spot within a second flag a rage tap.
  • Uncaught errors are recorded, and the handlers your crash reporter installed keep running.

Two lines in main.dart

Add the package, call AnyReplay.init before runApp, and give your MaterialApp or GoRouter an AnyReplayNavigatorObserver so screens are named after their routes. Taps, screens, errors and the app lifecycle are picked up on their own, and the app id and version are read from the app. It runs on Android and iOS with Flutter 3.27 or later and has no native code of its own.

lib/main.dart
flutter pub add anyreplay_flutter

// lib/main.dart
import 'package:anyreplay_flutter/anyreplay_flutter.dart';
import 'package:flutter/material.dart';

// The app id (bundle id / package name) is read from the app itself.
void main() {
  AnyReplay.init(const AnyReplayOptions(
    projectKey: 'ar_pk_live_your_project_key',
    ingestUrl: 'https://in.anyreplay.com',
    // Stop recording after this many sessions in a calendar month.
    // maxSessionsPerMonth: 10000,
    // Fields are masked: what people type replays as asterisks. Secure
    // fields, passwords, one-time codes and card fields are masked either
    // way. Uncomment the first line to record what people type, or the
    // second to mask every field in a way nothing can weaken.
    // maskAllInputs: false,
    // maskAllTyping: true
  ));
  runApp(MaterialApp(
    navigatorObservers: [AnyReplayNavigatorObserver()],
    home: const HomeScreen(),
  ));
}

The rest is optional: sampleRate is decided once per person, requireConsent stores, sends and reads nothing until you call AnyReplay.consent(true), AnyReplay.track tags moments on the timeline, and AnyReplay.identify links a session to a person in your system. If your project lists allowed domains, add the app’s bundle id or package name under Allowed apps.

Masked on the device, before anything leaves it

What people type into a text field is masked by default, as it is in the browser and in React Native: the value is replaced on the device, so the replay shows a field being filled in and never what went into it. Some fields are masked whatever you configure: anything with obscureText, any field whose autofillHints, keyboard type, hint, label or key marks it as a password, a one-time code or a payment field, and any value of 13 to 19 digits that passes the card-number check. Wrap a widget in AnyReplayMask to mask it and everything inside it, and set maskImages: true to record no images at all. One limit is worth stating plainly: with maskAllInputs: false, a bare TextField() says nothing about itself and is recorded, so give sensitive fields autofillHints or keep the default. More in privacy and masking.

What it does not do yet

We would rather you knew the edges before you installed. A CustomPainter, a chart that paints or a game is recorded as an opaque box with its Semantics label. Web views, maps and videos are labelled boxes whose contents are not captured. Icons from your own icon fonts are recorded as an icon without a name, and images inside decorations as their box. A multi-window app is recorded from its first view. An --obfuscate build cannot recognise web views, maps or video players by name, so they fall back to opaque boxes. The SDK runs on Android and iOS only.

Same dashboard, same player, same translation

Flutter sessions sit next to web and React Native sessions in the same project list, replay in the same player with the same timeline, and go through the same translation pipeline. Taps are drawn on each screen as a tap heatmap, with rage and dead taps marked. The package is MIT-licensed and on pub.dev; the install guide has every option.

Watch any session in your language.

Install in minutes, keep the Free plan for as long as you like. Two projects and 15,000 sessions a month, free.