buildImageView method

Widget buildImageView(
  1. VideoEditorController controller,
  2. Uint8List bytes,
  3. TransformData transform
)

Returns the ImageViewer tranformed with editing view Paint rect on top of the video area outside of the crop rect

Implementation

Widget buildImageView(
  VideoEditorController controller,
  Uint8List bytes,
  TransformData transform,
) {
  return SizedBox.fromSize(
    size: layout,
    child: CropTransformWithAnimation(
      shouldAnimate: layout != Size.zero,
      transform: transform,
      child: ImageViewer(
        controller: controller,
        bytes: bytes,
        child:
            buildPaint(controller, showGrid: false, showCenterRects: false),
      ),
    ),
  );
}