ScreenSizeHelper class

A helper class for managing screen size and padding calculations.

Constructors

ScreenSizeHelper({required BuildContext context, required ProImageEditorConfigs configs})

Properties

allToolbarHeight double
Returns the total height of all toolbars.
no setter
appBarHeight double
Returns the height of the app bar.
no setter
bodySize Size
Stores the last recorded body size.
getter/setter pair
bottomBarHeight double
Returns the height of the bottom bar.
no setter
configs ProImageEditorConfigs
Configuration options for the image editor.
final
context BuildContext
The build context used to obtain screen size information.
final
hashCode int
The hash code for this object.
no setterinherited
imageHeight double
Height of the image being edited.
getter/setter pair
imageWidth double
Width of the image being edited.
getter/setter pair
lastScreenSize Size
Stores the last recorded screen size.
getter/setter pair
renderedImageSize Size
Stores the last recorded image size.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen Size
Getter for the screen size of the device.
no setter
screenInnerHeight double
Getter for the screen inner height, excluding top and bottom padding.
no setter
screenMiddleX double
Getter for the X-coordinate of the middle of the screen.
no setter
screenMiddleY double
Getter for the Y-coordinate of the middle of the screen.
no setter
screenPadding EdgeInsets
Getter for the screen padding, accounting for safe area insets.
no setter
screenPaddingHelper EdgeInsets
Get the screen padding values.
no setter
screenSizeDebouncer Debounce
Debounce for handling changes in screen size.
getter/setter pair

Methods

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