ThemeLayerInteraction constructor
const
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.
- The
buttonRadius
defaults to10.0
. - The
strokeWidth
defaults to1.2
. - The
borderElementWidth
defaults to7.0
. - The
borderElementSpace
defaults to5.0
. - The
borderColor
defaults toblue
. - The
removeCursor
defaults to SystemMouseCursors.click. - The
rotateScaleCursor
defaults to SystemMouseCursors.click. - The
hoverCursor
defaults to SystemMouseCursors.move. - The
borderStyle
defaults to LayerInteractionBorderStyle.solid. - The
showTooltips
defaults tofalse
.
Implementation
const ThemeLayerInteraction({
this.removeAreaBackgroundActive = const Color(0xFFF44336),
this.removeAreaBackgroundInactive = const Color(0xFF424242),
this.buttonRadius = 10,
this.strokeWidth = 1.2,
this.borderElementWidth = 7,
this.borderElementSpace = 5,
this.borderColor = Colors.blue,
this.removeCursor = SystemMouseCursors.click,
this.rotateScaleCursor = SystemMouseCursors.click,
this.editCursor = SystemMouseCursors.click,
this.hoverCursor = SystemMouseCursors.move,
this.borderStyle = LayerInteractionBorderStyle.solid,
this.showTooltips = false,
this.buttonRemoveColor = Colors.black,
this.buttonRemoveBackground = Colors.white,
this.buttonEditTextColor = Colors.black,
this.buttonEditTextBackground = Colors.white,
this.buttonScaleRotateColor = Colors.black,
this.buttonScaleRotateBackground = Colors.white,
});