From 32d9c17676b514eb5c55f312c73dee631ab109ec Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 21:00:24 -0800 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 4f57d0c2..5941a6c7 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -418,7 +418,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { final List children; final double toolBarHeight; final double? toolBarSectionSpacing; - final ToolbarAlignment? toolBarIconAlignment; + final ToolbarAlignment toolBarIconAlignment; final bool? multiRowsDisplay; /// The color of the toolbar. @@ -439,7 +439,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { @override Size get preferredSize => Size.fromHeight(toolBarHeight); - ToolbarAlignment get toolBarIconAlignment2 => toolBarIconAlignment; @override Widget build(BuildContext context) { @@ -448,11 +447,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { child: multiRowsDisplay ?? true ? Wrap( alignment: - (toolBarIconAlignment2==ToolbarAlignment.left) + (toolBarIconAlignment==ToolbarAlignment.left) ? WrapAlignment.left - :(toolBarIconAlignment2==ToolbarAlignment.center) + :(toolBarIconAlignment==ToolbarAlignment.center) ? WrapAlignment.center - :(toolBarIconAlignment2==ToolbarAlignment.right) + :(toolBarIconAlignment==ToolbarAlignment.right) ? WrapAlignment.right : WrapAlignment.center, runSpacing: 4, spacing: toolBarSectionSpacing ?? 4,