|
|
@ -61,11 +61,8 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
final axis = toolbarConfigurations.axis; |
|
|
|
final axis = toolbarConfigurations.axis; |
|
|
|
final globalController = configurations.controller; |
|
|
|
final globalController = configurations.controller; |
|
|
|
|
|
|
|
|
|
|
|
final spacerWidget = |
|
|
|
|
|
|
|
configurations.spacerWidget ?? const SizedBox.shrink(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return [ |
|
|
|
return [ |
|
|
|
if (configurations.showUndo) ...[ |
|
|
|
if (configurations.showUndo) |
|
|
|
QuillToolbarHistoryButton( |
|
|
|
QuillToolbarHistoryButton( |
|
|
|
isUndo: true, |
|
|
|
isUndo: true, |
|
|
|
options: toolbarConfigurations.buttonOptions.undoHistory, |
|
|
|
options: toolbarConfigurations.buttonOptions.undoHistory, |
|
|
@ -73,9 +70,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.undoHistory.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.undoHistory.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showRedo) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showRedo) ...[ |
|
|
|
|
|
|
|
QuillToolbarHistoryButton( |
|
|
|
QuillToolbarHistoryButton( |
|
|
|
isUndo: false, |
|
|
|
isUndo: false, |
|
|
|
options: toolbarConfigurations.buttonOptions.redoHistory, |
|
|
|
options: toolbarConfigurations.buttonOptions.redoHistory, |
|
|
@ -83,9 +78,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.redoHistory.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.redoHistory.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showFontFamily) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showFontFamily) ...[ |
|
|
|
|
|
|
|
QuillToolbarFontFamilyButton( |
|
|
|
QuillToolbarFontFamilyButton( |
|
|
|
options: toolbarConfigurations.buttonOptions.fontFamily, |
|
|
|
options: toolbarConfigurations.buttonOptions.fontFamily, |
|
|
|
controller: |
|
|
|
controller: |
|
|
@ -93,9 +86,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
defaultDispalyText: context.loc.font, |
|
|
|
defaultDispalyText: context.loc.font, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showFontSize) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showFontSize) ...[ |
|
|
|
|
|
|
|
QuillToolbarFontSizeButton( |
|
|
|
QuillToolbarFontSizeButton( |
|
|
|
options: toolbarConfigurations.buttonOptions.fontSize, |
|
|
|
options: toolbarConfigurations.buttonOptions.fontSize, |
|
|
|
controller: |
|
|
|
controller: |
|
|
@ -103,27 +94,21 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
defaultDisplayText: context.loc.fontSize, |
|
|
|
defaultDisplayText: context.loc.fontSize, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showBoldButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showBoldButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.bold, |
|
|
|
attribute: Attribute.bold, |
|
|
|
options: toolbarConfigurations.buttonOptions.bold, |
|
|
|
options: toolbarConfigurations.buttonOptions.bold, |
|
|
|
controller: toolbarConfigurations.buttonOptions.bold.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.bold.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showItalicButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showItalicButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.italic, |
|
|
|
attribute: Attribute.italic, |
|
|
|
options: toolbarConfigurations.buttonOptions.italic, |
|
|
|
options: toolbarConfigurations.buttonOptions.italic, |
|
|
|
controller: toolbarConfigurations.buttonOptions.italic.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.italic.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showUnderLineButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showUnderLineButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.underline, |
|
|
|
attribute: Attribute.underline, |
|
|
|
options: toolbarConfigurations.buttonOptions.underLine, |
|
|
|
options: toolbarConfigurations.buttonOptions.underLine, |
|
|
@ -131,9 +116,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.underLine.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.underLine.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showStrikeThrough) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showStrikeThrough) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.strikeThrough, |
|
|
|
attribute: Attribute.strikeThrough, |
|
|
|
options: toolbarConfigurations.buttonOptions.strikeThrough, |
|
|
|
options: toolbarConfigurations.buttonOptions.strikeThrough, |
|
|
@ -141,9 +124,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.strikeThrough.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.strikeThrough.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showInlineCode) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showInlineCode) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.inlineCode, |
|
|
|
attribute: Attribute.inlineCode, |
|
|
|
options: toolbarConfigurations.buttonOptions.inlineCode, |
|
|
|
options: toolbarConfigurations.buttonOptions.inlineCode, |
|
|
@ -151,9 +132,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.inlineCode.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.inlineCode.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showSubscript) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showSubscript) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.subscript, |
|
|
|
attribute: Attribute.subscript, |
|
|
|
options: toolbarConfigurations.buttonOptions.subscript, |
|
|
|
options: toolbarConfigurations.buttonOptions.subscript, |
|
|
@ -161,9 +140,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.subscript.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.subscript.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showSuperscript) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showSuperscript) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.superscript, |
|
|
|
attribute: Attribute.superscript, |
|
|
|
options: toolbarConfigurations.buttonOptions.superscript, |
|
|
|
options: toolbarConfigurations.buttonOptions.superscript, |
|
|
@ -171,44 +148,34 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.superscript.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.superscript.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showSmallButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showSmallButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.small, |
|
|
|
attribute: Attribute.small, |
|
|
|
options: toolbarConfigurations.buttonOptions.small, |
|
|
|
options: toolbarConfigurations.buttonOptions.small, |
|
|
|
controller: toolbarConfigurations.buttonOptions.small.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.small.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showColorButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showColorButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarColorButton( |
|
|
|
QuillToolbarColorButton( |
|
|
|
controller: toolbarConfigurations.buttonOptions.color.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.color.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
isBackground: false, |
|
|
|
isBackground: false, |
|
|
|
options: toolbarConfigurations.buttonOptions.color, |
|
|
|
options: toolbarConfigurations.buttonOptions.color, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showBackgroundColorButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showBackgroundColorButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarColorButton( |
|
|
|
QuillToolbarColorButton( |
|
|
|
options: toolbarConfigurations.buttonOptions.backgroundColor, |
|
|
|
options: toolbarConfigurations.buttonOptions.backgroundColor, |
|
|
|
controller: toolbarConfigurations.buttonOptions.color.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.color.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
isBackground: true, |
|
|
|
isBackground: true, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showClearFormat) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showClearFormat) ...[ |
|
|
|
|
|
|
|
QuillToolbarClearFormatButton( |
|
|
|
QuillToolbarClearFormatButton( |
|
|
|
controller: |
|
|
|
controller: |
|
|
|
toolbarConfigurations.buttonOptions.clearFormat.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.clearFormat.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
options: toolbarConfigurations.buttonOptions.clearFormat, |
|
|
|
options: toolbarConfigurations.buttonOptions.clearFormat, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (theEmbedButtons != null) |
|
|
|
if (theEmbedButtons != null) |
|
|
|
for (final builder in theEmbedButtons) |
|
|
|
for (final builder in theEmbedButtons) |
|
|
|
builder( |
|
|
|
builder( |
|
|
@ -228,7 +195,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
), |
|
|
|
), |
|
|
|
if (configurations.showAlignmentButtons) ...[ |
|
|
|
if (configurations.showAlignmentButtons) |
|
|
|
QuillToolbarSelectAlignmentButtons( |
|
|
|
QuillToolbarSelectAlignmentButtons( |
|
|
|
controller: toolbarConfigurations |
|
|
|
controller: toolbarConfigurations |
|
|
|
.buttonOptions.selectAlignmentButtons.controller ?? |
|
|
|
.buttonOptions.selectAlignmentButtons.controller ?? |
|
|
@ -239,9 +206,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
showRightAlignment: configurations.showRightAlignment, |
|
|
|
showRightAlignment: configurations.showRightAlignment, |
|
|
|
showJustifyAlignment: configurations.showJustifyAlignment, |
|
|
|
showJustifyAlignment: configurations.showJustifyAlignment, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showDirection) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showDirection) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.rtl, |
|
|
|
attribute: Attribute.rtl, |
|
|
|
options: toolbarConfigurations.buttonOptions.direction, |
|
|
|
options: toolbarConfigurations.buttonOptions.direction, |
|
|
@ -249,8 +214,6 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.direction.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.direction.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showDividers && |
|
|
|
if (configurations.showDividers && |
|
|
|
isButtonGroupShown[1] && |
|
|
|
isButtonGroupShown[1] && |
|
|
|
(isButtonGroupShown[2] || |
|
|
|
(isButtonGroupShown[2] || |
|
|
@ -262,7 +225,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
), |
|
|
|
), |
|
|
|
if (configurations.showHeaderStyle) ...[ |
|
|
|
if (configurations.showHeaderStyle) |
|
|
|
QuillToolbarSelectHeaderStyleButton( |
|
|
|
QuillToolbarSelectHeaderStyleButton( |
|
|
|
controller: toolbarConfigurations |
|
|
|
controller: toolbarConfigurations |
|
|
|
.buttonOptions.selectHeaderStyleButtons.controller ?? |
|
|
|
.buttonOptions.selectHeaderStyleButtons.controller ?? |
|
|
@ -270,8 +233,6 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
options: |
|
|
|
options: |
|
|
|
toolbarConfigurations.buttonOptions.selectHeaderStyleButtons, |
|
|
|
toolbarConfigurations.buttonOptions.selectHeaderStyleButtons, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showDividers && |
|
|
|
if (configurations.showDividers && |
|
|
|
configurations.showHeaderStyle && |
|
|
|
configurations.showHeaderStyle && |
|
|
|
isButtonGroupShown[2] && |
|
|
|
isButtonGroupShown[2] && |
|
|
@ -283,7 +244,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
), |
|
|
|
), |
|
|
|
if (configurations.showListNumbers) ...[ |
|
|
|
if (configurations.showListNumbers) |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.ol, |
|
|
|
attribute: Attribute.ol, |
|
|
|
options: toolbarConfigurations.buttonOptions.listNumbers, |
|
|
|
options: toolbarConfigurations.buttonOptions.listNumbers, |
|
|
@ -291,9 +252,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.listNumbers.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.listNumbers.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showListBullets) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showListBullets) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.ul, |
|
|
|
attribute: Attribute.ul, |
|
|
|
options: toolbarConfigurations.buttonOptions.listBullets, |
|
|
|
options: toolbarConfigurations.buttonOptions.listBullets, |
|
|
@ -301,18 +260,14 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.listBullets.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.listBullets.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showListCheck) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showListCheck) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleCheckListButton( |
|
|
|
QuillToolbarToggleCheckListButton( |
|
|
|
options: toolbarConfigurations.buttonOptions.toggleCheckList, |
|
|
|
options: toolbarConfigurations.buttonOptions.toggleCheckList, |
|
|
|
controller: toolbarConfigurations |
|
|
|
controller: toolbarConfigurations |
|
|
|
.buttonOptions.toggleCheckList.controller ?? |
|
|
|
.buttonOptions.toggleCheckList.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showCodeBlock) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showCodeBlock) ...[ |
|
|
|
|
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
attribute: Attribute.codeBlock, |
|
|
|
attribute: Attribute.codeBlock, |
|
|
|
options: toolbarConfigurations.buttonOptions.codeBlock, |
|
|
|
options: toolbarConfigurations.buttonOptions.codeBlock, |
|
|
@ -320,8 +275,6 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
toolbarConfigurations.buttonOptions.codeBlock.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.codeBlock.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showDividers && |
|
|
|
if (configurations.showDividers && |
|
|
|
isButtonGroupShown[3] && |
|
|
|
isButtonGroupShown[3] && |
|
|
|
(isButtonGroupShown[4] || isButtonGroupShown[5])) ...[ |
|
|
|
(isButtonGroupShown[4] || isButtonGroupShown[5])) ...[ |
|
|
@ -331,16 +284,14 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
if (configurations.showQuote) ...[ |
|
|
|
if (configurations.showQuote) |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
QuillToolbarToggleStyleButton( |
|
|
|
options: toolbarConfigurations.buttonOptions.quote, |
|
|
|
options: toolbarConfigurations.buttonOptions.quote, |
|
|
|
controller: toolbarConfigurations.buttonOptions.quote.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.quote.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
attribute: Attribute.blockQuote, |
|
|
|
attribute: Attribute.blockQuote, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showIndent) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showIndent) ...[ |
|
|
|
|
|
|
|
QuillToolbarIndentButton( |
|
|
|
QuillToolbarIndentButton( |
|
|
|
controller: |
|
|
|
controller: |
|
|
|
toolbarConfigurations.buttonOptions.indentIncrease.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.indentIncrease.controller ?? |
|
|
@ -348,9 +299,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
isIncrease: true, |
|
|
|
isIncrease: true, |
|
|
|
options: toolbarConfigurations.buttonOptions.indentIncrease, |
|
|
|
options: toolbarConfigurations.buttonOptions.indentIncrease, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showIndent) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showIndent) ...[ |
|
|
|
|
|
|
|
QuillToolbarIndentButton( |
|
|
|
QuillToolbarIndentButton( |
|
|
|
controller: |
|
|
|
controller: |
|
|
|
toolbarConfigurations.buttonOptions.indentDecrease.controller ?? |
|
|
|
toolbarConfigurations.buttonOptions.indentDecrease.controller ?? |
|
|
@ -358,8 +307,6 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
isIncrease: false, |
|
|
|
isIncrease: false, |
|
|
|
options: toolbarConfigurations.buttonOptions.indentDecrease, |
|
|
|
options: toolbarConfigurations.buttonOptions.indentDecrease, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showDividers && |
|
|
|
if (configurations.showDividers && |
|
|
|
isButtonGroupShown[4] && |
|
|
|
isButtonGroupShown[4] && |
|
|
|
isButtonGroupShown[5]) |
|
|
|
isButtonGroupShown[5]) |
|
|
@ -368,7 +315,7 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
color: configurations.sectionDividerColor, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
space: configurations.sectionDividerSpace, |
|
|
|
), |
|
|
|
), |
|
|
|
if (configurations.showLink) ...[ |
|
|
|
if (configurations.showLink) |
|
|
|
toolbarConfigurations.linkStyleType.isOriginal |
|
|
|
toolbarConfigurations.linkStyleType.isOriginal |
|
|
|
? QuillToolbarLinkStyleButton( |
|
|
|
? QuillToolbarLinkStyleButton( |
|
|
|
controller: toolbarConfigurations |
|
|
|
controller: toolbarConfigurations |
|
|
@ -382,16 +329,12 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
options: toolbarConfigurations.buttonOptions.linkStyle2, |
|
|
|
options: toolbarConfigurations.buttonOptions.linkStyle2, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
if (configurations.showSearchButton) |
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.showSearchButton) ...[ |
|
|
|
|
|
|
|
QuillToolbarSearchButton( |
|
|
|
QuillToolbarSearchButton( |
|
|
|
controller: toolbarConfigurations.buttonOptions.search.controller ?? |
|
|
|
controller: toolbarConfigurations.buttonOptions.search.controller ?? |
|
|
|
globalController, |
|
|
|
globalController, |
|
|
|
options: toolbarConfigurations.buttonOptions.search, |
|
|
|
options: toolbarConfigurations.buttonOptions.search, |
|
|
|
), |
|
|
|
), |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
if (configurations.customButtons.isNotEmpty) ...[ |
|
|
|
if (configurations.customButtons.isNotEmpty) ...[ |
|
|
|
if (configurations.showDividers) |
|
|
|
if (configurations.showDividers) |
|
|
|
QuillToolbarDivider( |
|
|
|
QuillToolbarDivider( |
|
|
@ -418,7 +361,6 @@ class QuillSimpleToolbar extends StatelessWidget |
|
|
|
// globalController, |
|
|
|
// globalController, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ], |
|
|
|
// ], |
|
|
|
spacerWidget, |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|