QuillSimpleToolbarConfig constructor

const QuillSimpleToolbarConfig({
  1. double toolbarSectionSpacing = kToolbarSectionSpacing,
  2. WrapAlignment toolbarIconAlignment = WrapAlignment.center,
  3. WrapCrossAlignment toolbarIconCrossAlignment = WrapCrossAlignment.center,
  4. QuillSimpleToolbarButtonOptions buttonOptions = const QuillSimpleToolbarButtonOptions(),
  5. List<QuillToolbarCustomButtonOptions> customButtons = const [],
  6. bool multiRowsDisplay = true,
  7. bool showDividers = true,
  8. bool showFontFamily = true,
  9. bool showFontSize = true,
  10. bool showBoldButton = true,
  11. bool showItalicButton = true,
  12. bool showSmallButton = false,
  13. bool showUnderLineButton = true,
  14. bool showLineHeightButton = false,
  15. bool showStrikeThrough = true,
  16. bool showInlineCode = true,
  17. bool showColorButton = true,
  18. bool showBackgroundColorButton = true,
  19. bool showClearFormat = true,
  20. bool showAlignmentButtons = false,
  21. bool showLeftAlignment = true,
  22. bool showCenterAlignment = true,
  23. bool showRightAlignment = true,
  24. bool showJustifyAlignment = true,
  25. bool showHeaderStyle = true,
  26. bool showListNumbers = true,
  27. bool showListBullets = true,
  28. bool showListCheck = true,
  29. bool showCodeBlock = true,
  30. bool showQuote = true,
  31. bool showIndent = true,
  32. bool showLink = true,
  33. bool showUndo = true,
  34. bool showRedo = true,
  35. bool showDirection = false,
  36. bool showSearchButton = true,
  37. bool showSubscript = true,
  38. bool showSuperscript = true,
  39. @experimental bool showClipboardCut = false,
  40. @experimental bool showClipboardCopy = false,
  41. @experimental bool showClipboardPaste = false,
  42. LinkStyleType linkStyleType = LinkStyleType.original,
  43. HeaderStyleType headerStyleType = HeaderStyleType.original,
  44. Decoration? decoration,
  45. List<EmbedButtonBuilder>? embedButtons,
  46. LinkDialogAction? linkDialogAction,
  47. QuillDialogTheme? dialogTheme,
  48. QuillIconTheme? iconTheme,
  49. Axis axis = Axis.horizontal,
  50. Color? color,
  51. Color? sectionDividerColor,
  52. double? sectionDividerSpace,
  53. double? toolbarSize,
  54. 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;