WhatsAppTextBottomBar constructor
const
WhatsAppTextBottomBar({
- Key? key,
- required ProImageEditorConfigs configs,
- required Color initColor,
- required ValueChanged<
Color> onColorChanged, - required TextStyle selectedStyle,
- required dynamic onFontChange(
- TextStyle style
Creates a WhatsAppTextBottomBar widget.
This bottom bar allows users to customize text color and font style, integrating seamlessly with the WhatsApp theme.
Example:
WhatsAppTextBottomBar(
configs: myEditorConfigs,
initColor: Colors.black,
onColorChanged: (color) {
// Handle color change
},
selectedStyle: TextStyle(fontSize: 16),
onFontChange: (style) {
// Handle font change
},
)
Implementation
const WhatsAppTextBottomBar({
super.key,
required this.configs,
required this.initColor,
required this.onColorChanged,
required this.selectedStyle,
required this.onFontChange,
});