Fit enum
Values
- fill → const Fit
-
Rive content will fill the available view. If the aspect ratios differ, then the Rive content will be stretched.
- contain → const Fit
-
Rive content will be contained within the view, preserving the aspect ratio. If the ratios differ, then a portion of the view will be unused
- cover → const Fit
-
Rive will cover the view, preserving the aspect ratio. If the Rive content has a different ratio to the view, then the Rive content will be clipped.
- fitWidth → const Fit
-
Rive content will fill to the width of the view. This may result in clipping or unfilled view space.
- fitHeight → const Fit
-
Rive content will fill to the height of the view. This may result in clipping or unfilled view space.
- none → const Fit
-
Rive content will render to the size of its artboard, which may result in clipping or unfilled view space.
- scaleDown → const Fit
-
Rive content is scaled down to the size of the view, preserving the aspect ratio. This is equivalent to Contain when the content is larger than the canvas. If the canvas is larger, then ScaleDown will not scale up.
- layout → const Fit
-
Rive content will be resized automatically based on layout constraints of the artboard to match the underlying widget size.
See: Responsive Layout
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited