DeviceTypeFromContext extension
Utils to determine the DeviceType from the current context.
- on
Methods
-
getDeviceType(
) → DeviceType - Determines the DeviceType from the current context.
-
isLandscape(
) → bool - True if device orientation is landscape.
-
isPhone(
) → bool - True if current device is a phone.
-
isPortrait(
) → bool - True is device orientation is portrait.
-
isShortScreen(
) → bool - True if the device screen height is rather small (please rename this)
-
isSmallScreen(
) → bool - True if the device screen is rather small
-
isTablet(
) → bool - True if current device is a tablet.
-
isTabletLandscape(
) → bool - True if device is a tablet and landscape.
Constants
- smallScreenBreakpoint → const int
-
Max width of small screen.
330