FittedBox class
Scales and positions a child widget within its allocated space according to fit and alignment.
Equivalent to Flutter's FittedBox for nocterm terminal UIs.
Example — keep the NitroLogo centred and fully visible regardless of
how large the surrounding Expanded area is:
FittedBox(
fit: BoxFit.scaleDown,
child: NitroLogo(color: Colors.cyan),
)
Constructors
Properties
Methods
-
createElement(
) → SingleChildRenderObjectElement -
inherited
-
createRenderObject(
BuildContext context) → RenderObject -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRenderObject(
BuildContext context, covariant RenderFittedBox renderObject) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited