TrimEditor class
Constructors
TrimEditor ({Key ? key , required Trimmer trimmer , double viewerWidth = 50.0 * 8 , double viewerHeight = 50 , BoxFit fit = BoxFit.fitHeight , Duration maxVideoLength = const Duration(milliseconds: 0) , double circleSize = 5.0 , double borderWidth = 3 , double scrubberWidth = 4 , double circleSizeOnDrag = 8.0 , Color circlePaintColor = Colors.white , Color borderPaintColor = Colors.orange , Color scrubberPaintColor = Colors.orange , int thumbnailQuality = 75 , bool showDuration = true , int sideTapSize = 24 , TextStyle durationTextStyle = const TextStyle(color: Colors.white) , dynamic onChangeStart (double startValue )?, dynamic onChangeEnd (double endValue )?, dynamic onChangePlaybackState (bool isPlaying )? })
Widget for displaying the video trimmer.
Properties
borderPaintColor
→ Color
For specifying a color to the border of
the trim area.
final
borderWidth
→ double
For specifying the width of the border around
the trim area. By default it is set to 3
.
final
circlePaintColor
→ Color
For specifying a color to the circle.
final
circleSize
→ double
For specifying a size to the holder at the
two ends of the video trimmer area, while it is idle
.
final
circleSizeOnDrag
→ double
For specifying a size to the holder at
the two ends of the video trimmer area, while it is being
dragged
.
final
durationTextStyle
→ TextStyle
For providing a TextStyle
to the
duration text.
final
fit
→ BoxFit
For defining the image fit type of each thumbnail image.
final
hashCode
→ int
The hash code for this object.
no setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
maxVideoLength
→ Duration
For defining the maximum length of the output video.
final
onChangeEnd
→ dynamic Function(double endValue ) ?
Callback to the video end position.
final
onChangePlaybackState
→ dynamic Function(bool isPlaying ) ?
Callback to the video playback
state to know whether it is currently playing or paused.
final
onChangeStart
→ dynamic Function(double startValue ) ?
Callback to the video start position
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scrubberPaintColor
→ Color
For specifying a color to the video
scrubber inside the trim area.
final
scrubberWidth
→ double
For specifying the width of the video scrubber
final
showDuration
→ bool
For showing the start and the end point of the
video on top of the trimmer area.
final
sideTapSize
→ int
Determines the touch size of the side handles, left and right. The rest, in
the center, will move the whole frame if maxVideoLength is inferior to the
total duration of the video.
final
thumbnailQuality
→ int
For specifying the quality of each
generated image thumbnail, to be displayed in the trimmer
area.
final
trimmer
→ Trimmer
The Trimmer instance controlling the data.
final
viewerHeight
→ double
For defining the total trimmer area height
final
viewerWidth
→ double
For defining the total trimmer area width
final