Simplify alignment/direction toolbar buttons group showing condition

pull/1362/head
Miloš Karakaš 2 years ago committed by GitHub
parent 4ffba5da23
commit 428bcfc847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/src/widgets/toolbar.dart

@ -175,7 +175,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
showBackgroundColorButton ||
showClearFormat ||
embedButtons?.isNotEmpty == true,
(showAlignmentButtons && (showLeftAlignment || showCenterAlignment || showRightAlignment || showJustifyAlignment)) || showDirection,
showLeftAlignment || showCenterAlignment || showRightAlignment || showJustifyAlignment || showDirection,
showHeaderStyle,
showListNumbers || showListBullets || showListCheck || showCodeBlock,
showQuote || showIndent,

Loading…
Cancel
Save