ScreenGoConfig class

Configuration class for ScreenGo package Allows customization of breakpoints, safe area behavior, and more

Constructors

ScreenGoConfig({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}) ScreenGoConfig
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 ScreenGoConfig
Get the current configuration instance
no setter

Static Methods

configure(ScreenGoConfig config) → void
Configure ScreenGo with custom settings Must be called before using ScreenGo widgets
reset() → void
Reset configuration to default