Sizing class Foundation

Dynamically keeps track of the screen's sizes, and resizes it appropriately to fit almost any web / mobile / tablet screen.

Constructors

Sizing()

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

heightOf({dynamic weight = sizingWeight, required Size area}) double
Returns the % of screen height for the weight passed as a double so it can be used for layout purposes.
isDesktopDisplay(Size size) bool
Determines whether or not the current screen is a hamburger / hot dog orientation
layoutItemHeight(int sections, Size area) double
layoutItemWidth(int sections, Size area) double
Returns a maximum width accounting for padding, given how many rows, and depending on device type.
logicalHeight() double
Logical height of the screen
logicalScreenSize() Size
Size in logical pixels
logicalWidth() double
Logical width of the screen
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
physicalHeight() double
Physical height of the screen
physicalScreenSize() Size
Size in physical pixels
physicalWidth() double
Physical width of the screen
pixelRatio() double
Pixel Ratio of a given device
responsiveSize(double base, Size size) double
Creates a scale factor to adjust for size differences between mobile, tablet, and web.
sizingWindow() FlutterView
The sizing window of the application
toString() String
A string representation of this object.
inherited
universalPadding() EdgeInsets
Basic padding that can be used for anything.
widthOf({dynamic weight = sizingWeight, required Size area}) double
Returns the % of screen width for the weight passed as a double so it can be used for layout purposes.

Operators

operator ==(Object other) bool
The equality operator.
inherited