ResponsiveHelper class
Constructors
- ResponsiveHelper.fromContext(BuildContext context)
- ✅ Safe Constructor: يحمي من null context أو null mediaQuery
- ResponsiveHelper.fromData(ResponsiveData data)
Properties
- data → ResponsiveData
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLargeScreen → bool
-
no setter
- isMediumScreen → bool
-
no setter
- isSmallScreen → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenType → ScreenType
-
no setter
- textScaleFactor → double
-
no setter
Methods
-
autoScaleDouble(
double? mobileValue) → double -
autoScaleFontSize(
double? mobileSize) → double -
autoScaleIconSize(
double? mobileSize) → double -
autoScaleInt(
int? mobileValue) → int -
autoScaleSpace(
double? mobileValue) → double -
autoScaleUI(
double? mobileValue) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
valueByScreen<
T> ({required T mobile, T? watch, T? tablet, T? smallDesktop, T? desktop, T? largeDesktop}) → T
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited