SizesManager class

A helper class for managing screen size and padding calculations.

Constructors

SizesManager({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.
getter/setter pair
bodySize Size
Stores the last recorded body size.
getter/setter pair
bottomBarHeight double
Returns the height of the bottom bar.
getter/setter pair
configs ProImageEditorConfigs
Configuration options for the image editor.
final
context BuildContext
The build context used to obtain screen size information.
final
decodedImageSize Size
Size of the decoded image.
getter/setter pair
editorSize Size
Stores the last recorded editor size.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageMargin EdgeInsets
Get the screen padding values.
no setter
imageScreenGaps EdgeInsets
no setter
lastScreenSize Size
Stores the last recorded screen size.
getter/setter pair
originalImageSize Size?
The raw 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
screenPadding EdgeInsets
Getter for the screen padding, accounting for safe area insets.
no setter
temporaryDecodedImageSize Size
Represents a temporary decoded image size which is required for screen resizing.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recalculateLayerPosition({required List<EditorStateHistory> history, required ResizeEvent resizeEvent}) → void
Recalculates the position and scale of layers based on the temporary decoded image size.
toString() String
A string representation of this object.
inherited

Operators

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