fabre 0.1.0-beta.1
fabre: ^0.1.0-beta.1 copied to clipboard
Consent-based screenshot reports with local frame replay and native Android/iOS bridges.
example/main.dart
import 'package:fabre/fabre.dart';
import 'package:flutter/material.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final reporter = ScreenReporter(ReporterConfig(
apiKey: const String.fromEnvironment('FABRE_INGEST_KEY'),
endpoint: Uri.parse(const String.fromEnvironment('FABRE_ENDPOINT')),
recipient: 'Mobile QA',
appVersion: '1.0.0',
environment: 'staging',
));
await reporter.initialize();
runApp(MaterialApp(
navigatorKey: reporter.navigatorKey,
navigatorObservers: [ReporterNavigatorObserver(reporter)],
builder: (context, child) => Stack(children: [
ReporterBoundary(reporter: reporter, child: child!),
Positioned.fill(child: ReporterLauncher(reporter: reporter)),
]),
home: const Scaffold(body: Center(child: Text('My app'))),
));
}