ResponsiveHelper class

The Responsive Helper class manages the device type and updates based upon the provided screen size. It is initialized in the ResponsiveMaterialApp and ResponsiveCupertinoApp constructors. It also allows for manual updates with the testingScreenType static member, but only after a call to the ResponsiveHelper.updateTestingScreenType() method.

Constructors

ResponsiveHelper({required Orientation orientation, required Size screenSize})

Properties

hashCode int
The hash code for this object.
no setterinherited
orientation Orientation
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize Size
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

instance ResponsiveHelper?
no setter
screenType → dynamic
no setter
testingScreenType ScreenType
getter/setter pair

Static Methods

current() ScreenType
currently(ScreenType _screenTypeOption) bool
init(BuildContext context, BoxConstraints boxConstraints) → void
setupScreenType(double deviceWidth) ScreenType
smallerThan(ScreenType _screenTypeOption) bool
updateTestingScreenType() → void