kamera_testing
Replay test kit for kamera. A thin controller
that drives the native KameraReplay facade over a control MethodChannel from Flutter end-to-end
tests: a fixture is installed as the session's frame source, the flow replays it through the real
capture pipeline with no camera, and a machine-readable trace is read back. Pixels never cross the
bridge — only fixture ids and the trace do.
Not for production apps — this is a dev/test dependency.
Usage
import 'package:kamera_testing/kamera_testing.dart';
await KameraReplayController.install(ReplayFixtureId.pipelineSmoke);
// ... run the flow ...
final trace = await KameraReplayController.trace();
addTearDown(KameraReplayController.reset);