ResponsiveConfig class

==== CONFIG ==== Configuration class for responsive design Set your design file dimensions here

Constructors

ResponsiveConfig()

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

baseHeight double
Get base design height
no setter
baseWidth double
Get base design width
no setter
height double
Get current screen height (read-only)
no setter
initialized bool
Whether ResponsiveConfig has been initialized
no setter
width double
Get current screen width (read-only)
no setter

Static Methods

init(BuildContext context, {double? baseWidth, double? baseHeight}) → void
Initialize ResponsiveConfig with the current screen size Optionally set base dimensions in the same call
reset() → void
Reset initialization state (useful for testing)
setBaseDimensions({required double width, required double height}) → void
Set custom base dimensions for your design Call this BEFORE init() to set your Figma/design dimensions