FixedTrimmerWidget constructor

const FixedTrimmerWidget({
  1. Key? key,
  2. required FlutterVideoTrimmer trimmer,
  3. required VoidCallback onThumbnailsLoaded,
  4. double viewerWidth = 50.0 * 8,
  5. double viewerHeight = 50,
  6. Duration maxVideoLength = const Duration(milliseconds: 0),
  7. bool showDuration = true,
  8. TextStyle durationTextStyle = const TextStyle(color: Colors.white),
  9. DurationStyle durationStyle = DurationStyle.FORMAT_HH_MM_SS,
  10. dynamic onStartChanged(
    1. double startValue
    )?,
  11. dynamic onEndChanged(
    1. double endValue
    )?,
  12. dynamic onPlaybackStateChanged(
    1. bool isPlaying
    )?,
  13. TrimEditorProperties editorProps = const TrimEditorProperties(),
  14. FixedTrimmerProps shapeProps = const FixedTrimmerProps(),
})

Implementation

const FixedTrimmerWidget({
  super.key,
  required this.trimmer,
  required this.onThumbnailsLoaded,
  this.viewerWidth = 50.0 * 8,
  this.viewerHeight = 50,
  this.maxVideoLength = const Duration(milliseconds: 0),
  this.showDuration = true,
  this.durationTextStyle = const TextStyle(color: Colors.white),
  this.durationStyle = DurationStyle.FORMAT_HH_MM_SS,
  this.onStartChanged,
  this.onEndChanged,
  this.onPlaybackStateChanged,
  this.editorProps = const TrimEditorProperties(),
  this.shapeProps = const FixedTrimmerProps(),
});