IconsPaintingEditor constructor

const IconsPaintingEditor({
  1. IconData moveAndZoom = Icons.pinch_outlined,
  2. IconData eraser = Icons.delete_forever_outlined,
  3. IconData bottomNavBar = Icons.edit_outlined,
  4. IconData lineWeight = Icons.line_weight_rounded,
  5. IconData freeStyle = Icons.edit,
  6. IconData arrow = Icons.arrow_right_alt_outlined,
  7. IconData line = Icons.horizontal_rule,
  8. IconData fill = Icons.format_color_fill,
  9. IconData noFill = Icons.format_color_reset,
  10. IconData rectangle = Icons.crop_free,
  11. IconData circle = Icons.lens_outlined,
  12. IconData dashLine = Icons.power_input,
})

Creates an instance of IconsPaintingEditor with customizable icon settings.

You can provide custom icons for various actions in the Painting Editor component.

  • bottomNavBar: The icon for the bottom navigation bar.
  • lineWeight: The icon for adjusting line weight.
  • fill: The icon for filling the background.
  • noFill: The icon for not filling the background.
  • freeStyle: The icon for the freehand drawing tool.
  • arrow: The icon for the arrow drawing tool.
  • line: The icon for the straight line drawing tool.
  • rectangle: The icon for the rectangle drawing tool.
  • circle: The icon for the circle drawing tool.
  • dashLine: The icon for the dashed line drawing tool.

If no custom icons are provided, default icons are used for each action.

Example:

IconsPaintingEditor(
  bottomNavBar: Icons.edit_rounded,
  lineWeight: Icons.line_weight_rounded,
  fill: Icons.fill, // Add the fill icon here
  noFill: Icons.clear_rounded, // Add the noFill icon here
  freeStyle: Icons.edit,
  arrow: Icons.arrow_right_alt_outlined,
  line: Icons.horizontal_rule,
  rectangle: Icons.crop_free,
  circle: Icons.lens_outlined,
  dashLine: Icons.power_input,
)

Implementation

const IconsPaintingEditor({
  this.moveAndZoom = Icons.pinch_outlined,
  this.eraser = Icons.delete_forever_outlined,
  this.bottomNavBar = Icons.edit_outlined,
  this.lineWeight = Icons.line_weight_rounded,
  this.freeStyle = Icons.edit,
  this.arrow = Icons.arrow_right_alt_outlined,
  this.line = Icons.horizontal_rule,
  this.fill = Icons.format_color_fill,
  this.noFill = Icons.format_color_reset,
  this.rectangle = Icons.crop_free,
  this.circle = Icons.lens_outlined,
  this.dashLine = Icons.power_input,
});