FlareConfiguration class
Constructors
-
FlareConfiguration(String filename, {String? boundsNode, String? animation, BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center, bool isPaused = false, bool snapToEnd = false, FlareController? controller, FlareCompletedCallback? callback, Color? color, bool shouldClip = true, bool sizeFromArtboard = false, String? artboard, EdgeInsets margin = const EdgeInsets.all(24.0), Size size = const Size(150, 150)})
-
const
Properties
-
alignment
→ Alignment
-
The alignment that will be applied in conjuction to the fit to align
the Flare content within the bounds of this widget.
final
-
animation
→ String?
-
The name of the animation to play.
final
-
artboard
→ String?
-
The name of the artboard to display.
final
-
boundsNode
→ String?
-
The name of the node to use to determine the bounds of the content.
When null it will default to the bounds of the artboard.
final
-
callback
→ FlareCompletedCallback?
-
Callback invoked when animation has completed. If animation is looping
this callback is never invoked.
final
-
color
→ Color?
-
The color to override any fills/strokes with.
final
-
controller
→ FlareController?
-
The
FlareController
used to drive animations/mixing/procedural hierarchy
manipulation of the Flare contents.
final
-
filename
→ String
-
Name of the Flare file to be loaded from the AssetBundle.
final
-
fit
→ BoxFit
-
The BoxFit strategy used to scale the Flare content into the
bounds of this widget.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isPaused
→ bool
-
When true, animations do not advance.
final
-
margin
→ EdgeInsets
-
Margin for
FlareActor
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
shouldClip
→ bool
-
When true, the Flare content will be clipped against the bounds of this
widget.
final
-
size
→ Size
-
Size of animated
FlareActor
final
-
sizeFromArtboard
→ bool
-
When true the intrinsic size of the artboard will be used as the
dimensions of this widget.
final
-
snapToEnd
→ bool
-
When true, the animation will be applied at the end of its duration.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited