ResponsiveConfig class
Configuration model for responsive design settings
Constructors
-
ResponsiveConfig.new({double textScaleFactor = ResponsiveConstants.defaultTextScale, double spacingScaleFactor = ResponsiveConstants.defaultSpacingScale, double animationDurationMultiplier = 1.0, double minFontSize = ResponsiveConstants.minFontSize, double maxFontSize = ResponsiveConstants.maxFontSize, double minTouchTargetSize = ResponsiveConstants.minTouchTargetSize, double maxContentWidth = ResponsiveConstants.maxContentWidth, double baselineScreenWidth = ResponsiveConstants.baselineScreenWidth, double baselineScreenHeight = ResponsiveConstants.baselineScreenHeight, bool enableDebugMode = false, bool enableCaching = true, int cacheSize = ResponsiveConstants.maxCacheSize, Map<
String, double> ? customBreakpoints, Map<String, double> ? platformScalingFactors}) -
Creates a ResponsiveConfig instance
const
- ResponsiveConfig.androidFirst()
-
Creates an Android-first ResponsiveConfig
factory
- ResponsiveConfig.cupertino()
-
Creates a Cupertino (iOS) optimized ResponsiveConfig
factory
- ResponsiveConfig.debugConfig()
-
Creates a debug-enabled ResponsiveConfig
factory
- ResponsiveConfig.defaultConfig()
-
Creates a default ResponsiveConfig
factory
- ResponsiveConfig.materialDesign()
-
Creates a Material Design 3 optimized ResponsiveConfig
factory
- ResponsiveConfig.performanceConfig()
-
Creates a performance-optimized ResponsiveConfig
factory
- ResponsiveConfig.webOptimized()
-
Creates a web-optimized ResponsiveConfig
factory
Properties
- animationDurationMultiplier → double
-
Animation duration multiplier
final
- baselineScreenHeight → double
-
Baseline screen height for responsive scaling calculations
final
- baselineScreenWidth → double
-
Baseline screen width for responsive scaling calculations
final
- cacheSize → int
-
Cache size limit
final
-
customBreakpoints
→ Map<
String, double> ? -
Custom breakpoint overrides
final
- enableCaching → bool
-
Whether to cache responsive calculations
final
- enableDebugMode → bool
-
Whether to enable responsive debugging
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxContentWidth → double
-
Maximum content width
final
- maxFontSize → double
-
Maximum font size for readability
final
- minFontSize → double
-
Minimum font size for accessibility
final
- minTouchTargetSize → double
-
Minimum touch target size
final
-
platformScalingFactors
→ Map<
String, double> ? -
Platform-specific scaling factors
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacingScaleFactor → double
-
Spacing scale factor for responsive spacing
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - textScaleFactor → double
-
Text scale factor for responsive typography
final
Methods
-
copyWith(
{double? textScaleFactor, double? spacingScaleFactor, double? animationDurationMultiplier, double? minFontSize, double? maxFontSize, double? minTouchTargetSize, double? maxContentWidth, double? baselineScreenWidth, double? baselineScreenHeight, bool? enableDebugMode, bool? enableCaching, int? cacheSize, Map< String, double> ? customBreakpoints, Map<String, double> ? platformScalingFactors}) → ResponsiveConfig - Creates a copy of this config with the given fields replaced
-
fromJson(
String json) → ResponsiveConfig -
Converts the object from a JSON string representation.
inherited
-
fromMap(
Map< String, dynamic> map) → ResponsiveConfig - Converts the object from a Map representation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Converts the object to a JSON string representation.
inherited
-
toMap(
) → Map< String, dynamic> -
Converts the
BaseDataModel
object to a Map representation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited