ESizerUtil class

Constructors

ESizerUtil()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleHeight double
The ratio of actual screen height to screen design height
no setter
scaleText double
no setter
scaleWidth double
The ratio of actual screen width to screen design width
no setter
screenHeight double
no setter
screenOrientation Orientation
no setter
screenWidth double
no setter

Methods

getResponsiveFontSize(num fontSize) double
Return responsive, adapted fontSize which is the size of the font on the design
getResponsiveHeight(num height) double
Return responsive, adapted size base on height
getResponsiveRadius(num r) double
Adapt according to the smaller of width or height
getResponsiveWidth(num width) double
Return responsive, adapted size base on width
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

Static Properties

sizeMap Map<String, double>
Size data which load from size file
getter/setter pair

Static Methods

getValueOf(String key) double
init(BoxConstraints constraints, {Orientation orientation = Orientation.portrait, Size? designSize = _defaultDesignSize}) → void
Sets the screen's size and Device's orientation, BoxConstraints, Height, and Width