revclust_flutter

Flutter SDK for capturing structured incident evidence from Flutter apps.

Use it to capture app state, device context, and expected/observed values around production incidents.

Install

dependencies:
  revclust_flutter: ^0.7.0

Quick Start

Create an app in Revclust, copy its SDK key, then initialize the SDK.

import "package:flutter/widgets.dart";
import "package:revclust_flutter/revclust_flutter.dart";

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final revclust = await Revclust.initialize(
    RevclustConfig(
      projectKey: const String.fromEnvironment("REVCLUST_PROJECT_KEY"),
    ),
  );

  runApp(MyApp(revclust: revclust));
}

Pass the SDK key at run or build time:

flutter run --dart-define=REVCLUST_PROJECT_KEY=rpk_...

Optional Flutter Error Capture

Set captureFlutterErrors to capture Flutter framework errors reported through FlutterError.onError.

RevclustConfig(
  projectKey: const String.fromEnvironment("REVCLUST_PROJECT_KEY"),
  captureFlutterErrors: true,
);

This feature is disabled by default. Captures exclude raw messages and stacks. See the SDK reference for what it captures.

What Next

Follow the setup guide to add a state snapshot provider, capture your first incident, and open it in Revclust.

Read the docs

Platforms

Revclust supports Flutter mobile apps on Android and iOS.

Requires Flutter 3.44+, Android minSdk 24, and iOS 13+.

License

This package is licensed under the MIT License. See LICENSE.

Libraries

revclust_flutter
Revclust Flutter SDK public API.