AppSizeUtil class
The util class with all the stuff that we use to get the size of the app.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
- deviceHeight ↔ double
-
Device's Height.
getter/setter pair
- deviceType ↔ DeviceType
-
Type of Device.
getter/setter pair
- deviceWidth ↔ double
-
Device's Width.
getter/setter pair
- height ↔ double
-
Responsive Height.
getter/setter pair
- orientation ↔ Orientation
-
Device's Orientation.
getter/setter pair
- pixelRatio ↔ double?
-
The amount of required to multiply the size to get a pixel.
getter/setter pair
- size ↔ Size
-
Device's BoxConstraints.
getter/setter pair
- width ↔ double
-
Responsive Width.
getter/setter pair
Static Methods
-
getWebResponsiveSize(
{dynamic smallSize, dynamic mediumSize, dynamic largeSize}) → dynamic - For responsive web.
-
setScreenSize(
Size appSize, Orientation currentOrientation, double? canvasWidth) → void - Sets the Screen's size and Device's Orientation, BoxConstraints, Height, and Width.