Capture Flutter visuals Session Replay
LogRocket Flutter support is currently in Beta
View Capture of Flutter screens requires some additional setup. In order to start capturing visuals of a session, add the LogRocketWidget
above the top level of your app that you would like captured.
import 'package:logrocket_flutter/logrocket_flutter.dart';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return LogRocketWidget(
child: MaterialApp(
...
),
),
}
}
Redaction
Pause View Capture
To pause and unpause view capture, the following LogRocket calls can be used:
import 'package:logrocket_flutter/logrocket_flutter.dart';
LogRocket.pauseViewCapture()
LogRocket.unpauseViewCapture()