buildVideoView method
Widget
buildVideoView(
- VideoEditorController controller,
- TransformData transform,
- CropBoundaries boundary, {
- bool showGrid = false,
Returns the VideoViewer tranformed with editing view Paint rect on top of the video area outside of the crop rect
Implementation
Widget buildVideoView(
VideoEditorController controller,
TransformData transform,
CropBoundaries boundary, {
bool showGrid = false,
}) {
return Center(
child: SizedBox.fromSize(
size: layout,
child: CropTransformWithAnimation(
shouldAnimate: layout != Size.zero,
transform: transform,
child: VideoViewer(
controller: controller,
child: showGrid
? buildPaint(
controller,
boundary: boundary,
showGrid: showGrid,
showCenterRects:
controller.preferredCropAspectRatio == null,
)
: null,
),
),
),
);
}