IconsTextEditor constructor
const
IconsTextEditor({
- IconData alignLeft = Icons.align_horizontal_left_rounded,
- IconData alignCenter = Icons.align_horizontal_center_rounded,
- IconData alignRight = Icons.align_horizontal_right_rounded,
- IconData fontScale = Icons.format_size_rounded,
- IconData resetFontScale = Icons.refresh_rounded,
- IconData backgroundMode = Icons.layers_rounded,
Creates an instance of IconsTextEditor with customizable icon settings.
You can provide custom icons for various actions in the Text Editor component.
- bottomNavBar: The icon for the bottom navigation bar.
- alignLeft: The icon for aligning text to the left.
- alignCenter: The icon for aligning text to the center.
- alignRight: The icon for aligning text to the right.
- backgroundMode: The icon for toggling background mode.
If no custom icons are provided, default icons are used for each action.
Example:
IconsTextEditor(
bottomNavBar: Icons.text_fields,
alignLeft: Icons.align_horizontal_left_rounded,
alignCenter: Icons.align_horizontal_center_rounded,
alignRight: Icons.align_horizontal_right_rounded,
backgroundMode: Icons.layers_rounded,
)
Implementation
const IconsTextEditor({
this.bottomNavBar = Icons.title_rounded,
this.alignLeft = Icons.align_horizontal_left_rounded,
this.alignCenter = Icons.align_horizontal_center_rounded,
this.alignRight = Icons.align_horizontal_right_rounded,
this.fontScale = Icons.format_size_rounded,
this.resetFontScale = Icons.refresh_rounded,
this.backgroundMode = Icons.layers_rounded,
});