From 377efc35e851c0ebc4991e02e0b325db034cc686 Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 09:33:03 -0800 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 776419d8..f3ab2c22 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -79,8 +79,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { bool showBackgroundColorButton = true, bool showClearFormat = true, bool showAlignmentButtons = false, - bool showJustifyAlignment = true, + bool showCenterAlignment = true, bool showRightAlignment = true, + bool showJustifyAlignment = true, bool showHeaderStyle = true, bool showListNumbers = true, bool showListBullets = true, @@ -132,8 +133,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { onImagePickCallback != null || onVideoPickCallback != null, showAlignmentButtons, - showJustifyAlignment, + showCenterAlignment, showRightAlignment, + showJustifyAlignment, showHeaderStyle, showListNumbers || showListBullets || showListCheck || showCodeBlock, showQuote || showIndent, @@ -286,8 +288,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { controller: controller, iconSize: toolbarIconSize, iconTheme: iconTheme, + showCenterAlignment: showCenterAlignment + showRightAlignment: showRightAlignment showJustifyAlignment: showJustifyAlignment, - showRightAlignment: showRightAlignment ), if (isButtonGroupShown[1] && (isButtonGroupShown[2] ||