ThemeLayerInteraction constructor

const ThemeLayerInteraction({
  1. Color removeAreaBackgroundActive = const Color(0xFFF44336),
  2. Color removeAreaBackgroundInactive = const Color(0xFF424242),
  3. double buttonRadius = 10,
  4. double strokeWidth = 1.2,
  5. double borderElementWidth = 7,
  6. double borderElementSpace = 5,
  7. Color borderColor = Colors.blue,
  8. SystemMouseCursor removeCursor = SystemMouseCursors.click,
  9. SystemMouseCursor rotateScaleCursor = SystemMouseCursors.click,
  10. SystemMouseCursor editCursor = SystemMouseCursors.click,
  11. SystemMouseCursor hoverCursor = SystemMouseCursors.move,
  12. LayerInteractionBorderStyle borderStyle = LayerInteractionBorderStyle.solid,
  13. bool showTooltips = false,
  14. Color buttonRemoveColor = Colors.black,
  15. Color buttonRemoveBackground = Colors.white,
  16. Color buttonEditTextColor = Colors.black,
  17. Color buttonEditTextBackground = Colors.white,
  18. Color buttonScaleRotateColor = Colors.black,
  19. Color buttonScaleRotateBackground = Colors.white,
})

Creates a new instance of ThemeLayerInteraction.

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,
});