ToolBar.scroll constructor
ToolBar.scroll({
- Axis direction = Axis.horizontal,
- 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,
- dynamic crossAxisAlignment = CrossAxisAlignment.start,
- MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize? mainAxisSize = MainAxisSize.min,
- 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,
);