ToolBar constructor
ToolBar({
- Axis direction = Axis.horizontal,
- WrapAlignment alignment = WrapAlignment.start,
- double spacing = 0.0,
- WrapAlignment runAlignment = WrapAlignment.start,
- double runSpacing = 0.0,
- dynamic crossAxisAlignment = WrapCrossAlignment.start,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- Clip clipBehavior = Clip.none,
- List<
ToolBarStyle> ? toolBarConfig, - required QuillEditorController controller,
- List<
Widget> ? customButtons, - EdgeInsetsGeometry? padding,
- double? iconSize = 25,
- Color? iconColor = Colors.black,
- Color? activeIconColor = Colors.blue,
- Color? toolBarColor = Colors.white,
- MainAxisSize? mainAxisSize,
ToolBar widget to show the quill The toolbar items will be auto aligned based on the screen's width or height The behaviour of the widget's alignment is similar to Wrap widget
Implementation
ToolBar({
this.direction = Axis.horizontal,
this.alignment = WrapAlignment.start,
this.spacing = 0.0,
this.runAlignment = WrapAlignment.start,
this.runSpacing = 0.0,
this.crossAxisAlignment = WrapCrossAlignment.start,
this.textDirection,
this.verticalDirection = VerticalDirection.down,
this.clipBehavior = Clip.none,
this.toolBarConfig,
required this.controller,
this.customButtons,
this.padding,
this.iconSize = 25,
this.iconColor = Colors.black,
this.activeIconColor = Colors.blue,
this.toolBarColor = Colors.white,
this.mainAxisSize,
}) : assert(crossAxisAlignment is WrapCrossAlignment,
"Please pass WrapCrossAlignment, instead of CrossAxisAlignment"),
mainAxisAlignment = MainAxisAlignment.start,
textBaseline = TextBaseline.alphabetic,
_isScrollable = false,
super(
key: controller.toolBarKey,
);