ScreenState class
Constructors
- ScreenState(BuildContext _context, DeviceType? _deviceType)
-
const
Properties
- aspectRatio → double
-
Get aspect ratio of screen
no setter
- bottomBarHeight → double
-
Get height of bottom bar
no setter
- diagonal → double
-
Screen diagonal
no setter
- diagonalInches → double
-
Screen diagonal in inc
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAndroid → bool
-
Get true if Android
no setter
- isDesktop → bool
-
Get true if Desktop
no setter
- isFuchsia → bool
-
Get true if Fuchsia
no setter
- isIOS → bool
-
Get true if iOS
no setter
- isLaptop → bool
-
Get true if Laptop
no setter
- isLinux → bool
-
Get true if Linux
no setter
- isMacOS → bool
-
Get true if MacOS
no setter
- isMobile → bool
-
Get true if Mobile
no setter
- isTablet → bool
-
Get true if isTablet
no setter
- isWeb → bool
-
Get true if Web
no setter
- isWindows → bool
-
Get true if Windows
no setter
- mediaQuery → MediaQueryData
-
Get MediaQueryData
no setter
- orientation → Orientation
-
Get Orientation
no setter
- pixelRatio → double
-
Get pixel ratio of screen
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenHeight → double
-
Height of Screen
no setter
- screenSize → ScreenSize
-
Get screen size
@ScreenSize.xs (for phones - screens less than 768px wide)
@ScreenSize.sm (for tablets - screens equal to or greater than 768px wide)
@ScreenSize.md (for small laptops - screens equal to or greater than 992px wide)
@ScreenSize.lg (for laptops and desktops and TV - biggers screens)
no setter
- screenWidth → double
-
Width of Screen
no setter
- statusBarHeight → double
-
Get height of status bar
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
valueByScreen<
T extends Object> ({T? xs, T? sm, T? md, T? lg}) → T? - Get value by screen size
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited