TrimSliderStyle constructor

const TrimSliderStyle({
  1. Color background = Colors.black54,
  2. Color positionLineColor = Colors.white,
  3. double positionLineWidth = 4,
  4. Color lineColor = Colors.white60,
  5. Color onTrimmingColor = kDefaultSelectedColor,
  6. Color onTrimmedColor = kDefaultSelectedColor,
  7. double lineWidth = 2,
  8. double borderRadius = 5.0,
  9. TrimSliderEdgesType edgesType = TrimSliderEdgesType.bar,
  10. double? edgesSize,
  11. Color iconColor = Colors.black,
  12. double iconSize = 16,
  13. IconData? leftIcon = Icons.arrow_back_ios_rounded,
  14. IconData? rightIcon = Icons.arrow_forward_ios_rounded,
})

Style for TrimSlider. It's use on VideoEditorController

Implementation

const TrimSliderStyle({
  this.background = Colors.black54,
  this.positionLineColor = Colors.white,
  this.positionLineWidth = 4,
  this.lineColor = Colors.white60,
  this.onTrimmingColor = kDefaultSelectedColor,
  this.onTrimmedColor = kDefaultSelectedColor,
  this.lineWidth = 2,
  this.borderRadius = 5.0,
  // edges
  this.edgesType = TrimSliderEdgesType.bar,
  double? edgesSize,
  // icons
  this.iconColor = Colors.black,
  this.iconSize = 16,
  this.leftIcon = Icons.arrow_back_ios_rounded,
  this.rightIcon = Icons.arrow_forward_ios_rounded,
}) : edgesSize = edgesSize ?? (edgesType == TrimSliderEdgesType.bar ? 10 : 8);