CssViewportUnits extension
- on
Properties
- pc → double
-
pc - Percent % = 1/100 of value
no setter
- rem → double
-
rem - value relative to current font size
no setter
- vh → double
-
vh - percent of viewport height
no setter
- vmax → double
-
vmax - percent of largest between width or height of viewport
no setter
- vmin → double
-
vmin - percent of smallest between width or height of viewport
no setter
- vw → double
-
vw - percent of viewport width
no setter
Static Methods
-
initConstraintsSize(
BoxConstraints constraints) → dynamic - Set viewport sizes from constraints
-
initContextSizes(
BuildContext context) → dynamic - Set viewport sizes from context (MediaQuery size)
-
initCustomSize(
Size size) → dynamic - Set custom viewport sizes
-
initDefaultFontSize(
double fontSize) → dynamic - Set custom default font size