ResponsiveMasterConfig class
Configuration class for ResponsiveMaster package Allows customization of breakpoints, safe area behavior, and more
Constructors
- ResponsiveMasterConfig({double mobileBreakpoint = 650, double tabletBreakpoint = 1100, double desktopBreakpoint = 1920, bool includeSafeArea = true, bool respectTextScaleFactor = true, bool debugMode = false, bool enableCaching = true, double? designWidth, double? designHeight, bool allowFontScalingBeyondLimit = false, double maxTextScaleFactor = 2.0, double minTextScaleFactor = 0.5})
-
const
Properties
- allowFontScalingBeyondLimit → bool
-
Whether to allow font scaling past accessibility limits
final
- debugMode → bool
-
Whether to enable debug mode
final
- designHeight → double?
-
Custom design height for scaling (like in flutter_screenutil)
final
- designWidth → double?
-
Custom design width for scaling (like in flutter_screenutil)
final
- desktopBreakpoint → double
-
Breakpoint for desktop devices (width >= desktopBreakpoint)
final
- enableCaching → bool
-
Whether to enable caching for better performance
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeSafeArea → bool
-
Whether to include safe area insets in calculations
final
- maxTextScaleFactor → double
-
Maximum text scale factor (for accessibility)
final
- minTextScaleFactor → double
-
Minimum text scale factor
final
- mobileBreakpoint → double
-
Breakpoint for mobile devices (width < mobileBreakpoint)
final
- respectTextScaleFactor → bool
-
Whether to respect system text scaling factor
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabletBreakpoint → double
-
Breakpoint for tablet devices (mobileBreakpoint <= width < tabletBreakpoint)
final
Methods
-
copyWith(
{double? mobileBreakpoint, double? tabletBreakpoint, double? desktopBreakpoint, bool? includeSafeArea, bool? respectTextScaleFactor, bool? debugMode, bool? enableCaching, double? designWidth, double? designHeight, bool? allowFontScalingBeyondLimit, double? maxTextScaleFactor, double? minTextScaleFactor}) → ResponsiveMasterConfig - Create a copy with modified values
-
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
- instance → ResponsiveMasterConfig
-
Get the current configuration instance
no setter
Static Methods
-
configure(
ResponsiveMasterConfig config) → void - Configure ResponsiveMaster with custom settings Must be called before using ResponsiveMaster widgets
-
reset(
) → void - Reset configuration to default