diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 225a62bf..17014df8 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -175,11 +175,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { showBackgroundColorButton || showClearFormat || embedButtons?.isNotEmpty == true, - showAlignmentButtons || showDirection, - showLeftAlignment, - showCenterAlignment, - showRightAlignment, - showJustifyAlignment, + (showAlignmentButtons && (showLeftAlignment || showCenterAlignment || showRightAlignment || showJustifyAlignment)) || showDirection, showHeaderStyle, showListNumbers || showListBullets || showListCheck || showCodeBlock, showQuote || showIndent,