diff --git a/lib/src/widgets/toolbar/select_alignment_button.dart b/lib/src/widgets/toolbar/select_alignment_button.dart index 89d75da9..94340704 100644 --- a/lib/src/widgets/toolbar/select_alignment_button.dart +++ b/lib/src/widgets/toolbar/select_alignment_button.dart @@ -67,7 +67,7 @@ class _SelectAlignmentButtonState extends State { final theme = Theme.of(context); - final buttonCount = (widget.showJustifyAlignment == true) ? 4 : 3; + final buttonCount = 2 + ((widget.showRightAlignment) ? 1 : 0) + ((widget.showJustifyAlignment) ? 1 : 0); return Row( mainAxisSize: MainAxisSize.min,