WhatsAppPaintBottomBar constructor
const
WhatsAppPaintBottomBar({
- Key? key,
- required ProImageEditorConfigs configs,
- required double strokeWidth,
- required dynamic onSetLineWidth(
- double value
- required Color initColor,
- required ValueChanged<
Color> onColorChanged, - IconData iconStrokeWidthThin = ProImageEditorIcons.penSize1,
- IconData iconStrokeWidthMedium = ProImageEditorIcons.penSize2,
- 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,
});