ToolBar constructor

ToolBar({
  1. Axis direction = Axis.horizontal,
  2. WrapAlignment alignment = WrapAlignment.start,
  3. double spacing = 0.0,
  4. WrapAlignment runAlignment = WrapAlignment.start,
  5. double runSpacing = 0.0,
  6. dynamic crossAxisAlignment = WrapCrossAlignment.start,
  7. TextDirection? textDirection,
  8. VerticalDirection verticalDirection = VerticalDirection.down,
  9. Clip clipBehavior = Clip.none,
  10. List<ToolBarStyle>? toolBarConfig,
  11. required QuillEditorController controller,
  12. List<Widget>? customButtons,
  13. EdgeInsetsGeometry? padding,
  14. double? iconSize = 25,
  15. Color? iconColor = Colors.black,
  16. Color? activeIconColor = Colors.blue,
  17. Color? toolBarColor = Colors.white,
  18. 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,
      );