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
buttonRadiusdefaults to10.0. - The
strokeWidthdefaults to1.2. - The
borderElementWidthdefaults to7.0. - The
borderElementSpacedefaults to5.0. - The
borderColordefaults toblue. - The
removeCursordefaults to SystemMouseCursors.click. - The
rotateScaleCursordefaults to SystemMouseCursors.click. - The
hoverCursordefaults to SystemMouseCursors.move. - The
borderStyledefaults to LayerInteractionBorderStyle.solid. - The
showTooltipsdefaults 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,
});