WhatsAppPaintBottomBar constructor

const WhatsAppPaintBottomBar({
  1. Key? key,
  2. required ProImageEditorConfigs configs,
  3. required double strokeWidth,
  4. required dynamic onSetLineWidth(
    1. double value
    ),
  5. required Color initColor,
  6. required ValueChanged<Color> onColorChanged,
  7. IconData iconStrokeWidthThin = ProImageEditorIcons.penSize1,
  8. IconData iconStrokeWidthMedium = ProImageEditorIcons.penSize2,
  9. IconData iconStrokeWidthBold = ProImageEditorIcons.penSize3,
})

Creates a WhatsAppPaintBottomBar widget.

This bottom bar allows users to select stroke widths and colors for painting, integrating seamlessly with the WhatsApp theme.

Example:

WhatsAppPaintBottomBar(
  configs: myEditorConfigs,
  strokeWidth: 5.0,
  onSetLineWidth: (width) {
    // Handle stroke width change
  },
  initColor: Colors.black,
  onColorChanged: (color) {
    // Handle color change
  },
)

Implementation

const WhatsAppPaintBottomBar({
  super.key,
  required this.configs,
  required this.strokeWidth,
  required this.onSetLineWidth,
  required this.initColor,
  required this.onColorChanged,
  this.iconStrokeWidthThin = ProImageEditorIcons.penSize1,
  this.iconStrokeWidthMedium = ProImageEditorIcons.penSize2,
  this.iconStrokeWidthBold = ProImageEditorIcons.penSize3,
});