ScrollTrimmerWidget constructor

const ScrollTrimmerWidget({
  1. Key? key,
  2. required FlutterVideoTrimmer flutterVideoTrimmer,
  3. required Duration maxVideoLength,
  4. required VoidCallback onThumbnailLoadingComplete,
  5. double viewerWidth = 50 * 8,
  6. double viewerHeight = 50,
  7. bool showDuration = true,
  8. TextStyle durationTextStyle = const TextStyle(color: Colors.white),
  9. DurationStyle durationStyle = DurationStyle.FORMAT_HH_MM_SS,
  10. dynamic onChangeStart(
    1. double startValue
    )?,
  11. dynamic onChangeEnd(
    1. double endValue
    )?,
  12. dynamic onChangePlaybackState(
    1. bool isPlaying
    )?,
  13. double paddingFraction = 0.2,
  14. TrimEditorProperties editorProperties = const TrimEditorProperties(),
  15. TrimmerShapeProps areaProperties = const TrimmerShapeProps(),
})

Implementation

const ScrollTrimmerWidget({
  super.key,
  required this.flutterVideoTrimmer,
  required this.maxVideoLength,
  required this.onThumbnailLoadingComplete,
  this.viewerWidth = 50 * 8,
  this.viewerHeight = 50,
  this.showDuration = true,
  this.durationTextStyle = const TextStyle(color: Colors.white),
  this.durationStyle = DurationStyle.FORMAT_HH_MM_SS,
  this.onChangeStart,
  this.onChangeEnd,
  this.onChangePlaybackState,
  this.paddingFraction = 0.2,
  this.editorProperties = const TrimEditorProperties(),
  this.areaProperties = const TrimmerShapeProps(),
});