ResponsiveUtil class

A utility class for responsive design.

The ResponsiveUtil class helps in scaling UI components based on the device's screen size, adapting the layout to various screen dimensions. It provides height, width, and scale properties for calculating responsive sizes.

Constructors

ResponsiveUtil()
Factory constructor to return the singleton instance of ResponsiveUtil.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
Returns the height scaling factor.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Returns the scale factor, clamped between the minimum and maximum scale values.
no setter
width double
Returns the width scaling factor.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateDimensions(BuildContext context, double baseHeight, double baseWidth) → void
Updates the dimensions of the screen based on the provided baseHeight and baseWidth.

Operators

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