LocalScaler class

Helper class to scale values locally within a ScalifyBox.

Constructors

LocalScaler(double _scale)
Creates a LocalScaler with a specific scale factor.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor → double
Returns the raw scale factor being used.
no setter

Methods

br(num value) → BorderRadius
BorderRadius.circular
fz(num value) → double
Scales font size (with limits to prevent it becoming microscopic or huge).
h(num value) → double
Scales height (same as .s but semantically clearer).
iz(num value) → double
Scales icon size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
p(num value) → EdgeInsets
EdgeInsets.all
ph(num value) → EdgeInsets
EdgeInsets.symmetric(horizontal)
pv(num value) → EdgeInsets
EdgeInsets.symmetric(vertical)
r(num value) → Radius
Radius.circular
s(num value) → double
Scales a generic number (like spacing or unspecified dimensions).
sbh(num value) → SizedBox
Returns a SizedBox with scaled height.
sbw(num value) → SizedBox
Returns a SizedBox with scaled width.
si(num value) → int
Scales integer values (useful for alpha or precise counts).
toString() → String
A string representation of this object.
inherited
w(num value) → double
Scales width (same as .s but semantically clearer).

Operators

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