MediaQueryHelper class
Media query helper utilities
Constructors
- MediaQueryHelper(BuildContext context)
Properties
- aspectRatio → double
-
Get aspect ratio
no setter
- bottomBarHeight → double
-
Bottom navigation bar height
no setter
- brightness → Brightness
-
Get platform brightness
no setter
- context → BuildContext
-
final
- devicePixelRatio → double
-
Get device pixel ratio
no setter
- diagonalInches → double
-
Get diagonal size in inches (approximate)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Get screen height
no setter
- isDarkMode → bool
-
Is dark mode
no setter
- isKeyboardVisible → bool
-
Is keyboard visible
no setter
- isLandscape → bool
-
Is landscape
no setter
- isLightMode → bool
-
Is light mode
no setter
- isNarrowScreen → bool
-
Is narrow screen (aspect ratio < 0.7)
no setter
- isPortrait → bool
-
Is portrait
no setter
- isWideScreen → bool
-
Is wide screen (aspect ratio > 1.5)
no setter
- keyboardHeight → double
-
Keyboard height
no setter
- orientation → Orientation
-
Get orientation
no setter
- padding → EdgeInsets
-
Get padding (safe area)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenSize → Size
-
Get screen size
no setter
- statusBarHeight → double
-
Status bar height
no setter
- systemGestureInsets → EdgeInsets
-
Get system gesture insets
no setter
- textScaleFactor → TextScaler
-
Get text scale factor
no setter
- viewInsets → EdgeInsets
-
Get view insets
no setter
- viewPadding → EdgeInsets
-
Get view padding
no setter
- width → double
-
Get screen width
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited