ScrollTrimmerWidget constructor
const
ScrollTrimmerWidget({
- Key? key,
- required FlutterVideoTrimmer flutterVideoTrimmer,
- required Duration maxVideoLength,
- required VoidCallback onThumbnailLoadingComplete,
- double viewerWidth = 50 * 8,
- double viewerHeight = 50,
- bool showDuration = true,
- TextStyle durationTextStyle = const TextStyle(color: Colors.white),
- DurationStyle durationStyle = DurationStyle.FORMAT_HH_MM_SS,
- dynamic onChangeStart(
- double startValue
- dynamic onChangeEnd(
- double endValue
- dynamic onChangePlaybackState(
- bool isPlaying
- double paddingFraction = 0.2,
- TrimEditorProperties editorProperties = const TrimEditorProperties(),
- 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(),
});