BoxFit enum
Defines how a child widget should be inscribed into the available space.
Mirrors Flutter's BoxFit semantics for nocterm terminal UIs.
Values
- contain → const BoxFit
-
Scale the child uniformly so it fits within the available space. May leave empty space (letterboxing/pillarboxing).
- cover → const BoxFit
-
Scale the child uniformly so it fills the available space. May clip the child (cropping).
- fill → const BoxFit
-
Stretch the child to fill the available space exactly. Ignores the child's aspect ratio.
- fitWidth → const BoxFit
-
Scale the child to fit the available width. Height is derived from the child's aspect ratio.
- fitHeight → const BoxFit
-
Scale the child to fit the available height. Width is derived from the child's aspect ratio.
- none → const BoxFit
-
Display the child at its intrinsic size with no scaling.
- scaleDown → const BoxFit
-
Like contain but only scales down, never up.
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