ScreenUtilities class

Utility class for handling screen dimensions and orientation changes

Properties

dimensionChanges Stream<void>
Get a stream of dimension changes
no setter
hashCode int
The hash code for this object.
no setterinherited
isLandscape bool
Check if the device is in landscape mode
no setter
isPortrait bool
Check if the device is in portrait mode
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaBottom double
Get the safe area bottom inset
no setter
safeAreaLeft double
Get the safe area left inset
no setter
safeAreaRight double
Get the safe area right inset
no setter
safeAreaTop double
Get the safe area top inset
no setter
scaleFactor double
Get the scale factor
no setter
screenHeight double
Get the current screen height
no setter
screenWidth double
Get the current screen width
no setter
statusBarHeight double
Get the status bar height
no setter

Methods

addDimensionChangeListener(dynamic listener()) → void
Add a listener for dimension changes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshDimensions() Future<void>
Refresh dimensions from native side
removeDimensionChangeListener(dynamic listener()) → void
Remove a dimension change listener
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance ScreenUtilities
Singleton instance
final