ResponsiveMasterConfig constructor
const
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,
Implementation
const ResponsiveMasterConfig({
this.mobileBreakpoint = 650,
this.tabletBreakpoint = 1100,
this.desktopBreakpoint = 1920,
this.includeSafeArea = true,
this.respectTextScaleFactor = true,
this.debugMode = false,
this.enableCaching = true,
this.designWidth,
this.designHeight,
this.allowFontScalingBeyondLimit = false,
this.maxTextScaleFactor = 2.0,
this.minTextScaleFactor = 0.5,
}) : assert(mobileBreakpoint < tabletBreakpoint,
'mobileBreakpoint must be less than tabletBreakpoint'),
assert(tabletBreakpoint < desktopBreakpoint,
'tabletBreakpoint must be less than desktopBreakpoint'),
assert(maxTextScaleFactor > minTextScaleFactor,
'maxTextScaleFactor must be greater than minTextScaleFactor');