TrimEditor class

Inheritance

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 setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
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 setterinherited
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

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _TrimEditorState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited