FixedTrimmerWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FixedTrimmerWidget
Constructors
- FixedTrimmerWidget.new({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()})
-
const
Properties
- durationStyle → DurationStyle
-
Format style for displaying time durations (e.g., HH:MM:SS).
Defaults to
DurationStyle.FORMAT_HH_MM_SS
.final - durationTextStyle → TextStyle
-
Text style for displaying duration labels.
Defaults to
TextStyle(color: Colors.white)
.final - editorProps → TrimEditorProperties
-
Customization options for the trim editor UI.
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
-
Maximum allowed duration for the trimmed video.
final
- onEndChanged → dynamic Function(double endValue)?
-
Callback triggered when the end point of the trim changes.
Returns end time in milliseconds.
final
- onPlaybackStateChanged → dynamic Function(bool isPlaying)?
-
Callback triggered on video playback state change.
Returns
true
if playing,false
if paused.final - onStartChanged → dynamic Function(double startValue)?
-
Callback triggered when the start point of the trim changes.
Returns start time in milliseconds.
final
- onThumbnailsLoaded → VoidCallback
-
Callback triggered when all video thumbnails are loaded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shapeProps → FixedTrimmerProps
-
Customization options for the trim area's visual style.
final
- showDuration → bool
-
Whether to show the start and end times above the trimmer.
Defaults to
true
.final - trimmer → FlutterVideoTrimmer
-
Controls video trimming logic and playback.
final
- viewerHeight → double
-
Height of the trimmer preview area.
final
- viewerWidth → double
-
Width of the trimmer preview area.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FixedTrimmerWidget> -
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