ContextDeviceExtensions extension
Device extensions of BuildContext
- on
Properties
- aspectRatio → double
-
The aspect ratio of this size.
no setter
- devicePixelRatio → double
-
The number of device pixels for each logical pixel. This number might not
be a power of two. Indeed, it might not even be an integer. For example,
the Nexus 6 has a device pixel ratio of 3.5.
no setter
- height → double
-
The vertical extent of this size.
no setter
- isAndroid → bool
-
Returns true if the device is android.
no setter
- isDarkMode → bool
-
App theme mode (if dark returns true, else false).
no setter
- isIOS → bool
-
Returns true if the device is iOS.
no setter
- isLandscape → bool
-
Whether device is wider than tall or not.
no setter
- isPortrait → bool
-
Whether device is taller than wide or not.
no setter
- theme → ThemeData
-
App theme.
no setter
- width → double
-
The horizontal extent of this size.
no setter