ThemeLayerInteraction class
Represents the interaction settings for layers in the theme.
This class defines the visual interaction properties such as button radius, stroke width, dash width, dash space, dash color, and cursor styles for interacting with layers in the theme.
Constructors
- ThemeLayerInteraction({Color removeAreaBackgroundActive = const Color(0xFFF44336), Color removeAreaBackgroundInactive = const Color(0xFF424242), double buttonRadius = 10, double strokeWidth = 1.2, double borderElementWidth = 7, double borderElementSpace = 5, Color borderColor = Colors.blue, SystemMouseCursor removeCursor = SystemMouseCursors.click, SystemMouseCursor rotateScaleCursor = SystemMouseCursors.click, SystemMouseCursor editCursor = SystemMouseCursors.click, SystemMouseCursor hoverCursor = SystemMouseCursors.move, LayerInteractionBorderStyle borderStyle = LayerInteractionBorderStyle.solid, bool showTooltips = false, Color buttonRemoveColor = Colors.black, Color buttonRemoveBackground = Colors.white, Color buttonEditTextColor = Colors.black, Color buttonEditTextBackground = Colors.white, Color buttonScaleRotateColor = Colors.black, Color buttonScaleRotateBackground = Colors.white})
-
Creates a new instance of ThemeLayerInteraction.
const
Properties
- borderColor → Color
-
The color of the border element used for layer interactions.
final
- borderElementSpace → double
-
The space between the border element used for layer interactions.
final
- borderElementWidth → double
-
The width of the border element used for layer interactions.
final
- borderStyle → LayerInteractionBorderStyle
-
Specifies the style of the selected layer border.
final
-
The background color of the edit text button.
final
-
The color of the edit text button.
final
-
The radius of buttons used for layer interactions.
final
-
The background color of the remove button.
final
-
The color of the remove button.
final
-
The background color of the scale and rotate button.
final
-
The color of the scale and rotate button.
final
- editCursor → SystemMouseCursor
-
The cursor style for editing a Text layer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverCursor → SystemMouseCursor
-
The cursor style when hovering over a layer.
final
- removeAreaBackgroundActive → Color
-
The background color for the active removal area.
final
- removeAreaBackgroundInactive → Color
-
The background color for the inactive removal area.
final
- removeCursor → SystemMouseCursor
-
The cursor style for removing a layer.
final
- rotateScaleCursor → SystemMouseCursor
-
The cursor style for rotating or scaling a layer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTooltips → bool
-
Indicates whether tooltips should be displayed for the layer.
final
- strokeWidth → double
-
The width of the stroke used for layer interactions.
final
Methods
-
copyWith(
{double? buttonRadius, double? strokeWidth, double? borderElementWidth, double? borderElementSpace, Color? borderColor, SystemMouseCursor? removeCursor, SystemMouseCursor? editCursor, SystemMouseCursor? rotateScaleCursor, SystemMouseCursor? hoverCursor, LayerInteractionBorderStyle? borderStyle, bool? showTooltips, Color? removeAreaBackgroundActive, Color? removeAreaBackgroundInactive, Color? buttonRemoveColor, Color? buttonRemoveBackground, Color? buttonEditTextColor, Color? buttonEditTextBackground, Color? buttonScaleRotateColor, Color? buttonScaleRotateBackground}) → ThemeLayerInteraction -
Creates a copy of this
ThemeLayerInteraction
object with the given fields replaced with new 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