From a66aa5a61b634dd16be718031daecd4f747eac5e Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 09:12:31 -0800 Subject: [PATCH] Update select_alignment_button.dart --- lib/src/widgets/toolbar/select_alignment_button.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/widgets/toolbar/select_alignment_button.dart b/lib/src/widgets/toolbar/select_alignment_button.dart index eb427caf..ca48af73 100644 --- a/lib/src/widgets/toolbar/select_alignment_button.dart +++ b/lib/src/widgets/toolbar/select_alignment_button.dart @@ -47,25 +47,25 @@ class _SelectAlignmentButtonState extends State { Attribute.leftAlignment: Attribute.leftAlignment.value!, Attribute.centerAlignment: Attribute.centerAlignment.value!, Attribute.rightAlignment: Attribute.rightAlignment.value!, - if (showJustifyAlignment) Attribute.justifyAlignment: Attribute.justifyAlignment.value!, + if (widget.showJustifyAlignment) Attribute.justifyAlignment: Attribute.justifyAlignment.value!, }; final _valueAttribute = [ Attribute.leftAlignment, Attribute.centerAlignment, Attribute.rightAlignment, - if (showJustifyAlignment) Attribute.justifyAlignment + if (widget.showJustifyAlignment) Attribute.justifyAlignment ]; final _valueString = [ Attribute.leftAlignment.value!, Attribute.centerAlignment.value!, Attribute.rightAlignment.value!, - if (showJustifyAlignment) Attribute.justifyAlignment.value!, + if (widget.showJustifyAlignment) Attribute.justifyAlignment.value!, ]; final theme = Theme.of(context); - final buttonCount = (showJustifyAlignment == true) ? 4 : 3; + final buttonCount = (widget.showJustifyAlignment == true) ? 4 : 3; return Row( mainAxisSize: MainAxisSize.min,