ToolBar.scroll constructor

ToolBar.scroll({
  1. Axis direction = Axis.horizontal,
  2. TextDirection? textDirection,
  3. VerticalDirection verticalDirection = VerticalDirection.down,
  4. Clip clipBehavior = Clip.none,
  5. List<ToolBarStyle>? toolBarConfig,
  6. required QuillEditorController controller,
  7. List<Widget>? customButtons,
  8. EdgeInsetsGeometry? padding,
  9. double? iconSize = 25,
  10. Color? iconColor = Colors.black,
  11. Color? activeIconColor = Colors.blue,
  12. Color? toolBarColor = Colors.white,
  13. dynamic crossAxisAlignment = CrossAxisAlignment.start,
  14. MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.start,
  15. MainAxisSize? mainAxisSize = MainAxisSize.min,
  16. TextBaseline? textBaseline = TextBaseline.alphabetic,
})

ToolBar.scroll shows the widget in a single row/column Please define the direction, to make it a row or a column the direction defaults to Axis.horizontal

Implementation

ToolBar.scroll({
  this.direction = Axis.horizontal,
  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.crossAxisAlignment = CrossAxisAlignment.start,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.min,
  this.textBaseline = TextBaseline.alphabetic,
})  : assert(crossAxisAlignment is CrossAxisAlignment,
          "Please pass CrossAxisAlignment, instead of WrapCrossAlignment"),
      spacing = 0.0,
      runSpacing = 0.0,
      alignment = WrapAlignment.start,
      runAlignment = WrapAlignment.start,
      _isScrollable = true,
      super(
        key: controller.toolBarKey,
      );