Screen class
Constructors
- Screen.of(BuildContext context, {bool? useSafeSize})
-
factory
Properties
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
no setter
- isExtraLargeScreen → bool
-
no setter
- isExtraSmallScreen → bool
-
no setter
- isLandscape → bool
-
no setter
- isLargeScreen → bool
-
no setter
- isMediumScreen → bool
-
no setter
- isPortrait → bool
-
no setter
- isSmallScreen → bool
-
no setter
- mediaQueryData ↔ MediaQueryData
-
latefinal
- orientation → Orientation
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenHeight → double
-
The height of the media in logical pixels.
MediaQuery.of(context).size.height
no setter
- screenSize → ScreenSize
-
no setter
- screenWidth → double
-
The width of the media in logical pixels.
MediaQuery.of(context).size.width
no setter
- width → double
-
no setter
Methods
-
getScreenSize(
) → ScreenSize -
isL(
) → bool -
isM(
) → bool -
isS(
) → bool -
isXL(
) → bool -
isXS(
) → bool -
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
Static Properties
- largeWidth ↔ double
-
getter/setter pair
- mediumWidth ↔ double
-
getter/setter pair
- smallWidth ↔ double
-
getter/setter pair
- xlargeWidth ↔ double
-
getter/setter pair