TrimViewer class

Inheritance

Constructors

TrimViewer({Key? key, required Trimmer trimmer, Duration maxVideoLength = const Duration(milliseconds: 0), ViewerType type = ViewerType.auto, 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(), TrimAreaProperties areaProperties = const TrimAreaProperties(), VoidCallback? onThumbnailLoadingComplete})
Widget for displaying the video trimmer.
const

Properties

areaProperties TrimAreaProperties
Properties for customizing the trim area.
final
durationStyle DurationStyle
For specifying a style of the duration
final
durationTextStyle TextStyle
For providing a TextStyle to the duration text.
final
editorProperties TrimEditorProperties
Properties for customizing the trim editor.
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
onThumbnailLoadingComplete VoidCallback?
Callback for thumbnail loader to know when all the thumbnails are loaded.
final
paddingFraction double
This is the fraction of padding present beside the trimmer editor, calculated on the maxVideoLength value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration bool
For showing the start and the end point of the video on top of the trimmer area.
final
trimmer Trimmer
The Trimmer instance controlling the data.
final
type ViewerType
For specifying the type of the trim viewer. You can choose among: auto, fixed, and scrollable.
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() State<TrimViewer>
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}) 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