MediaQuerySizeHelper class abstract

Provides responsive screen size helpers using MediaQuery. Always use these methods with a valid BuildContext.

Constructors

MediaQuerySizeHelper()

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 Methods

height(BuildContext context) double
Returns screen height from MediaQuery
isDesktop(BuildContext context) bool
Returns true if the device is considered desktop
isMobile(BuildContext context) bool
Returns true if the device is considered mobile based on width
isTablet(BuildContext context) bool
Returns true if the device is considered tablet
size(BuildContext context) Size
Returns the full screen Size from MediaQuery
width(BuildContext context) double
Returns screen width from MediaQuery