TrimEditorPainter constructor
- required Offset startPos,
- required Offset endPos,
- required double scrubberAnimationDx,
- double circleSize = 0.5,
- double borderWidth = 3,
- double scrubberWidth = 1,
- bool showScrubber = true,
- Color borderPaintColor = Colors.white,
- Color circlePaintColor = Colors.white,
- Color scrubberPaintColor = Colors.white,
For drawing the trim editor slider
The required parameters are startPos
, endPos
& scrubberAnimationDx
-
startPos
to define the start offset -
endPos
to define the end offset -
scrubberAnimationDx
to define the horizontal length of the selected video area
The optional parameters are:
-
circleSize
for specifying a size to the holder at the two ends of the video trimmer area, while it isidle
. By default it is set to0.5
. -
borderWidth
for specifying the width of the border around the trim area. By default it is set to3
. -
scrubberWidth
for specifying the width of the video scrubber -
showScrubber
for specifying whether to show the scrubber -
borderPaintColor
for specifying a color to the border of the trim area. By default it is set toColors.white
. -
circlePaintColor
for specifying a color to the circle. By default it is set toColors.white
. -
scrubberPaintColor
for specifying a color to the video scrubber inside the trim area. By default it is set toColors.white
.
Implementation
TrimEditorPainter({
required this.startPos,
required this.endPos,
required this.scrubberAnimationDx,
this.circleSize = 0.5,
this.borderWidth = 3,
this.scrubberWidth = 1,
this.showScrubber = true,
this.borderPaintColor = Colors.white,
this.circlePaintColor = Colors.white,
this.scrubberPaintColor = Colors.white,
});