Update toolbar.dart

pull/459/head
mark8044 4 years ago committed by GitHub
parent 1b23492841
commit 377efc35e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      lib/src/widgets/toolbar.dart

@ -79,8 +79,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
bool showBackgroundColorButton = true, bool showBackgroundColorButton = true,
bool showClearFormat = true, bool showClearFormat = true,
bool showAlignmentButtons = false, bool showAlignmentButtons = false,
bool showJustifyAlignment = true, bool showCenterAlignment = true,
bool showRightAlignment = true, bool showRightAlignment = true,
bool showJustifyAlignment = true,
bool showHeaderStyle = true, bool showHeaderStyle = true,
bool showListNumbers = true, bool showListNumbers = true,
bool showListBullets = true, bool showListBullets = true,
@ -132,8 +133,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
onImagePickCallback != null || onImagePickCallback != null ||
onVideoPickCallback != null, onVideoPickCallback != null,
showAlignmentButtons, showAlignmentButtons,
showJustifyAlignment, showCenterAlignment,
showRightAlignment, showRightAlignment,
showJustifyAlignment,
showHeaderStyle, showHeaderStyle,
showListNumbers || showListBullets || showListCheck || showCodeBlock, showListNumbers || showListBullets || showListCheck || showCodeBlock,
showQuote || showIndent, showQuote || showIndent,
@ -286,8 +288,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
controller: controller, controller: controller,
iconSize: toolbarIconSize, iconSize: toolbarIconSize,
iconTheme: iconTheme, iconTheme: iconTheme,
showJustifyAlignment: showJustifyAlignment, showCenterAlignment: showCenterAlignment
showRightAlignment: showRightAlignment showRightAlignment: showRightAlignment
showJustifyAlignment: showJustifyAlignment,
), ),
if (isButtonGroupShown[1] && if (isButtonGroupShown[1] &&
(isButtonGroupShown[2] || (isButtonGroupShown[2] ||

Loading…
Cancel
Save