DeviceExt extension

on

Properties

cm double
The respective value in centimeters
no setter
dp double
Calculates the material dp (Pixel Density) (https://material.io/design/layout/pixel-density.html#pixel-density-on-android))
no setter
h double
Calculates the height depending on the device's screen size
no setter
inches double
The respective value in inches
no setter
mm double
The respective value millimeters
no setter
pc double
The respective value in picas (1/6th of 1 inch)
no setter
pt double
The respective value in points (1/72th of 1 inch)
no setter
px double
The respective value in pixels (default)
no setter
Q double
The respective value in quarter-millimeters
no setter
sh double
Calculates the height depending on the remaining device height after using SafeArea Eg: 20.sh -> will take 20% of the safe area height
no setter
sp double
Calculates the sp (Scalable Pixel) depending on the device's pixel density and aspect ratio
no setter
spa double
Calculates the sp (Scalable Pixel) based on Issue #27
no setter
sw double
Calculates the width depending on the remaining device width after using SafeArea
no setter
vmax double
Respective percentage of the viewport's larger dimension.
no setter
vmin double
Respective percentage of the viewport's smaller dimension.
no setter
w double
Calculates the width depending on the device's screen size
no setter