previewWidget method

  1. @override
Future<Widget> previewWidget()
override

A widget that displays the preview frames of a camera device.

This should only be called after passing as a parameter to a CameraController and CameraController.initialize has been called.

Implementation

@override
Future<Widget> previewWidget() => Future<Widget>.value(preview);