userx_flutter

Flutter plugin for UserX — session recording and UX analytics.

Requirements

  • iOS 15.0+, Android API 21+
  • The plugin includes the native UserX SDK (iOS 2.11.1, Android 4.4.0). Do not add UserX to your Podfile or build.gradle separately.

Installation

dependencies:
  userx_flutter: ^1.5.1

After upgrading the plugin, run pod install --repo-update in ios/ once.

Usage

import 'package:userx_flutter/userx_flutter.dart';

await UserX.start('YOUR_API_KEY');

Hiding sensitive content

OccludeWrapper(
  child: TextField(controller: cardNumber),
)

The wrapped widget is masked in the recording. Use enabled: false to turn a wrapper off. UserX.setSensitiveView is deprecated — use OccludeWrapper.

Rendering thread (iOS)

On iOS, screenshots are captured on a background thread by default. To capture on the main thread instead, call before start:

await UserX.setRenderingInBackground(false);