SizeConfig class
origin: kt_ifm_gtid_mob/lib/shared/utils/size_config.dart author: kevin.zhang, anovsiradj, opencode-go/glm-5.2 version: 2021-04-09, revised: 2026-08-17
Reference-dimension responsive scaling. init(context) once; then use
SizeUtils extension on num: 16.toWidth, 24.toHeight, 12.toFont.
Ref 670x1450 (tablet halving via 120-block division above 1200px height).
Constructors
- SizeConfig()
-
factory
Properties
- blockSizeHorizontal ↔ double
-
getter/setter pair
- blockSizeVertical ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- profileDrawerWidth ↔ double?
-
getter/setter pair
- refHeight ↔ double
-
getter/setter pair
- refWidth ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeBlockHorizontal ↔ double
-
getter/setter pair
- safeBlockVertical ↔ double
-
getter/setter pair
- screenHeight ↔ double
-
getter/setter pair
- screenWidth ↔ double
-
getter/setter pair
Methods
-
getFontRatio(
double val) → double -
getHeightRatio(
double val) → double -
getWidthRatio(
double val) → double -
init(
BuildContext context) → void -
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