size/size_utils
library
Properties
-
height
→ dynamic
-
This method is used to get device viewport height.
no setter
-
size
↔ Size
-
getter/setter pair
-
width
→ dynamic
-
This method is used to get device viewport width.
no setter
Functions
-
getFontSize(double px)
→ double
-
This method is used to set text font size according to Viewport
-
getHorizontalSize(double px)
→ double
-
This method is used to set padding/margin (for the left and Right side) & width of the screen or widget according to the Viewport width.
-
getMargin({double? all, double? left, double? top, double? right, double? bottom})
→ EdgeInsetsGeometry
-
This method is used to set margin responsively
-
getMarginOrPadding({double? all, double? left, double? top, double? right, double? bottom})
→ EdgeInsetsGeometry
-
This method is used to get padding or margin responsively
-
getPadding({double? all, double? left, double? top, double? right, double? bottom})
→ EdgeInsetsGeometry
-
This method is used to set padding responsively
-
getSize(double px)
→ double
-
This method is used to set smallest px in image height and width
-
getVerticalSize(double px)
→ double
-
This method is used to set padding/margin (for the top and bottom side) & height of the screen or widget according to the Viewport height.
-
ratioPhoneLike()
→ bool
-