IconsPaintingEditor constructor
const
IconsPaintingEditor({
- IconData moveAndZoom = Icons.pinch_outlined,
- IconData changeOpacity = Icons.opacity_outlined,
- IconData eraser = Icons.delete_forever_outlined,
- IconData lineWeight = Icons.line_weight_rounded,
- IconData freeStyle = Icons.edit,
- IconData arrow = Icons.arrow_right_alt_outlined,
- IconData line = Icons.horizontal_rule,
- IconData fill = Icons.format_color_fill,
- IconData noFill = Icons.format_color_reset,
- IconData rectangle = Icons.crop_free,
- IconData circle = Icons.lens_outlined,
- 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.changeOpacity = Icons.opacity_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,
});