TrimEditorPainter constructor

TrimEditorPainter({
  1. required Offset startPos,
  2. required Offset endPos,
  3. required double scrubberAnimationDx,
  4. double circleSize = 0.5,
  5. double borderWidth = 3,
  6. double scrubberWidth = 1,
  7. bool showScrubber = true,
  8. Color borderPaintColor = Colors.white,
  9. Color circlePaintColor = Colors.white,
  10. Color scrubberPaintColor = Colors.white,
})

For drawing the trim editor slider

The required parameters are startPos, endPos & scrubberAnimationDx

The optional parameters are:

  • circleSize for specifying a size to the holder at the two ends of the video trimmer area, while it is idle. By default it is set to 0.5.

  • borderWidth for specifying the width of the border around the trim area. By default it is set to 3.

  • 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 to Colors.white.

  • circlePaintColor for specifying a color to the circle. By default it is set to Colors.white.

  • scrubberPaintColor for specifying a color to the video scrubber inside the trim area. By default it is set to Colors.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,
});