dimension library

Classes

AnimatedDimensionSizedBox
Dimension
Base class of Dimension. Convert to actual px value by calling the toPX() function and provide a constraint value and the screen size.
DimensionSizedBox
Creates a widget that sizes its child to two possible Dimension values If this widget is placed in a infinite constraint environment and either the width or height has percent unit, the constraint is clamped to the size of the screen.
DimensionTween
Length
This is the one actually used by users. Contains a value and a unit
RenderDimensionSizedBox

Enums

LengthUnit

Extensions

DoubleRoundingExtension on double
extension for creating Length instance from double or int
DoubleToLengthExtension on double
IntToLengthExtension on int

Constants

lengthUnitMap → const Map<String, LengthUnit>

Functions

parseDimension(dynamic input) Dimension?
parseLength(String? string) Length?
parseLengthUnit(String? unit) LengthUnit?