TrimSliderStyle constructor
const
TrimSliderStyle({
- Color background = Colors.black54,
- Color positionLineColor = Colors.white,
- double positionLineWidth = 4,
- Color lineColor = Colors.white60,
- Color onTrimmingColor = kDefaultSelectedColor,
- Color onTrimmedColor = kDefaultSelectedColor,
- double lineWidth = 2,
- double borderRadius = 5.0,
- TrimSliderEdgesType edgesType = TrimSliderEdgesType.bar,
- double? edgesSize,
- Color iconColor = Colors.black,
- double iconSize = 16,
- IconData? leftIcon = Icons.arrow_back_ios_rounded,
- 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);