From 97e334887f8fde23bb896df2c87a951e6f277fa5 Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 09:26:32 -0800 Subject: [PATCH] Update select_alignment_button.dart --- lib/src/widgets/toolbar/select_alignment_button.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,