QuillSimpleToolbarConfig constructor
const
QuillSimpleToolbarConfig({
- double toolbarSectionSpacing = kToolbarSectionSpacing,
- WrapAlignment toolbarIconAlignment = WrapAlignment.center,
- WrapCrossAlignment toolbarIconCrossAlignment = WrapCrossAlignment.center,
- QuillSimpleToolbarButtonOptions buttonOptions = const QuillSimpleToolbarButtonOptions(),
- List<
QuillToolbarCustomButtonOptions> customButtons = const [], - bool multiRowsDisplay = true,
- bool showDividers = true,
- bool showFontFamily = true,
- bool showFontSize = true,
- bool showBoldButton = true,
- bool showItalicButton = true,
- bool showSmallButton = false,
- bool showUnderLineButton = true,
- bool showLineHeightButton = false,
- bool showStrikeThrough = true,
- bool showInlineCode = true,
- bool showColorButton = true,
- bool showBackgroundColorButton = true,
- bool showClearFormat = true,
- bool showAlignmentButtons = false,
- bool showLeftAlignment = true,
- bool showCenterAlignment = true,
- bool showRightAlignment = true,
- bool showJustifyAlignment = true,
- bool showHeaderStyle = true,
- bool showListNumbers = true,
- bool showListBullets = true,
- bool showListCheck = true,
- bool showCodeBlock = true,
- bool showQuote = true,
- bool showIndent = true,
- bool showLink = true,
- bool showUndo = true,
- bool showRedo = true,
- bool showDirection = false,
- bool showSearchButton = true,
- bool showSubscript = true,
- bool showSuperscript = true,
- @experimental bool showClipboardCut = false,
- @experimental bool showClipboardCopy = false,
- @experimental bool showClipboardPaste = false,
- LinkStyleType linkStyleType = LinkStyleType.original,
- HeaderStyleType headerStyleType = HeaderStyleType.original,
- Decoration? decoration,
- List<
EmbedButtonBuilder> ? embedButtons, - LinkDialogAction? linkDialogAction,
- QuillDialogTheme? dialogTheme,
- QuillIconTheme? iconTheme,
- Axis axis = Axis.horizontal,
- Color? color,
- Color? sectionDividerColor,
- double? sectionDividerSpace,
- double? toolbarSize,
- double toolbarRunSpacing = 4,
Implementation
const QuillSimpleToolbarConfig({
this.toolbarSectionSpacing = kToolbarSectionSpacing,
this.toolbarIconAlignment = WrapAlignment.center,
this.toolbarIconCrossAlignment = WrapCrossAlignment.center,
this.buttonOptions = const QuillSimpleToolbarButtonOptions(),
this.customButtons = const [],
this.multiRowsDisplay = true,
this.showDividers = true,
this.showFontFamily = true,
this.showFontSize = true,
this.showBoldButton = true,
this.showItalicButton = true,
this.showSmallButton = false,
this.showUnderLineButton = true,
this.showLineHeightButton = false,
this.showStrikeThrough = true,
this.showInlineCode = true,
this.showColorButton = true,
this.showBackgroundColorButton = true,
this.showClearFormat = true,
this.showAlignmentButtons = false,
this.showLeftAlignment = true,
this.showCenterAlignment = true,
this.showRightAlignment = true,
this.showJustifyAlignment = true,
this.showHeaderStyle = true,
this.showListNumbers = true,
this.showListBullets = true,
this.showListCheck = true,
this.showCodeBlock = true,
this.showQuote = true,
this.showIndent = true,
this.showLink = true,
this.showUndo = true,
this.showRedo = true,
this.showDirection = false,
this.showSearchButton = true,
this.showSubscript = true,
this.showSuperscript = true,
@experimental this.showClipboardCut = false,
@experimental this.showClipboardCopy = false,
@experimental this.showClipboardPaste = false,
this.linkStyleType = LinkStyleType.original,
this.headerStyleType = HeaderStyleType.original,
/// The decoration to use for the toolbar.
this.decoration,
/// Toolbar items to display for controls of embed blocks
this.embedButtons,
this.linkDialogAction,
///The theme to use for the icons in the toolbar, uses type [QuillIconTheme]
// this.iconTheme,
this.dialogTheme,
this.iconTheme,
this.axis = Axis.horizontal,
this.color,
this.sectionDividerColor,
this.sectionDividerSpace,
/// The change only applies if [multiRowsDisplay] is `false`
double? toolbarSize,
this.toolbarRunSpacing = 4,
}) : _toolbarSize = toolbarSize;