ScallingConfig class
A utility class for handling responsive scaling in Flutter applications.
Constructors
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
-
init(
BuildContext context) → void - Initializes the ScallingConfig with BuildContext to retrieve screen dimensions and platform information.
-
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
- guidelineBaseHeight ↔ double
-
The base height value for guideline scaling.
getter/setter pair
- guidelineBaseWidth ↔ double
-
The base width value for guideline scaling.
getter/setter pair
- isMobile ↔ bool
-
Indicates whether the application is running on a mobile platform (Android or iOS).
getter/setter pair
- longDimension ↔ double?
-
Represents the longer dimension of the screen, either screenWidth or screenHeight.
getter/setter pair
- platform ↔ Object?
-
Represents the target platform (e.g., Android, iOS) on which the Flutter application is running.
getter/setter pair
- screenHeight ↔ double?
-
Represents the height of the screen in logical pixels.
getter/setter pair
- screenWidth ↔ double?
-
Represents the width of the screen in logical pixels.
getter/setter pair
- shortDimension ↔ double?
-
Represents the shorter dimension of the screen, either screenWidth or screenHeight.
getter/setter pair
Static Methods
-
moderateScale(
double size) → double -
Scales a given
size
moderately based on the guideline scaling. -
moderateScaleVertical(
double size) → double -
Scales a given
size
moderately based on the vertical guideline scaling. -
scale(
double size) → double -
Scales a given
size
based on the short dimension and the guideline base width. -
verticalScale(
double size) → double -
Scales a given
size
based on the long dimension and the guideline base height.