KenBurns class

KenBurns widget, please provide a child Widget, Will animate the child, using random scale, translation & duration

Inheritance

Constructors

KenBurns({Key? key, required Widget child, Duration minAnimationDuration = const Duration(milliseconds: 3000), Duration maxAnimationDuration = const Duration(milliseconds: 10000), double maxScale = 8})
Constructor for a single child KenBurns
KenBurns.multiple({Key? key, Duration minAnimationDuration = const Duration(milliseconds: 1000), Duration maxAnimationDuration = const Duration(milliseconds: 10000), double maxScale = 10, int? childLoop = 3, List<Widget>? children, Duration? childrenFadeDuration = const Duration(milliseconds: 800)})
Constructor for multiple child KenBurns
const

Properties

child Widget?
final
childLoop int?
If specified (using the constructor multiple) Will determine how many times each child will stay in the KenBurns Until the next child will be displayed
final
children List<Widget>?
If specified (using the constructor multiple) Will animate childLoop each children then will fade to the next child Not Null & Size must be > 1 if size == 1 -> Will use the KenBurns as a single child
final
childrenFadeDuration Duration?
If specified (using the constructor multiple) Will specify the fade in duration between 2 child
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxAnimationDuration Duration
maximum translation & scale duration, not null
final
maxScale double
Maximum allowed child scale, > 1
final
minAnimationDuration Duration
minimum translation & scale duration, not null
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<KenBurns>
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