ResponsivityHelper class

Constructors

ResponsivityHelper.new({required MediaQueryData mediaQueryData, bool useDesignSizeAsReference = false, FontSizeMode fontSizeModeParam = FontSizeMode.devicePixelRatio, Size screenReferenceSizeParam = const Size(0, 0)})

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

deviceScreenType DeviceScreenType
getter/setter pair
fontSizeMode FontSizeMode
referenceScreenValue: Will adjust the font size according to the size of the screen of the design. Uses screenReferenceSize for calculations screenPercent: Will adjust the font sizes according the size of the phone screen. Each point represents the 0.1% of the screen size, so a font size of 16 means the 1.6% of the screen height androidSPStrategy: Will adjust the font sizes in a similar way than android devices theoretically devicePixelRatio: Will multyply font size by device pixel ratio.
getter/setter pair
horizontalUnit double
getter/setter pair
orientation Orientation
getter/setter pair
safeAreaPadding EdgeInsets
getter/setter pair
safeBlockHorizontal double
getter/setter pair
safeBlockVertical double
getter/setter pair
screenData MediaQueryData
getter/setter pair
screenHeight double
getter/setter pair
screenHeightPxReference double
getter/setter pair
screenReferenceSize Size
getter/setter pair
screenWidth double
getter/setter pair
screenWidthPxReference double
getter/setter pair
useDesignSizeAsReference bool
getter/setter pair
verticalUnit double
getter/setter pair

Static Methods

responsiveFontSize(double fontSize, {double? screenHeightPxReference, FontSizeMode? fontSizeMode}) double