buildPreview method

  1. @override
Widget buildPreview(
  1. int cameraId
)

Returns a widget showing a live camera preview.

Implementation

@override
Widget buildPreview(int cameraId) {
  return Texture(textureId: cameraId);
}