FixedTrimmerWidget constructor
const
FixedTrimmerWidget({
- Key? key,
- required FlutterVideoTrimmer trimmer,
- required VoidCallback onThumbnailsLoaded,
- double viewerWidth = 50.0 * 8,
- double viewerHeight = 50,
- Duration maxVideoLength = const Duration(milliseconds: 0),
- bool showDuration = true,
- TextStyle durationTextStyle = const TextStyle(color: Colors.white),
- DurationStyle durationStyle = DurationStyle.FORMAT_HH_MM_SS,
- dynamic onStartChanged(
- double startValue
- dynamic onEndChanged(
- double endValue
- dynamic onPlaybackStateChanged(
- bool isPlaying
- TrimEditorProperties editorProps = const TrimEditorProperties(),
- 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(),
});