From 9166760b7bd976b91f928d87c411eb8c1bcc3c94 Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 19:38:54 -0800 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 947ed255..ef845e57 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -60,6 +60,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { required this.children, this.toolBarHeight = 36, this.toolBarSectionSpacing, + this.toolBarIconAlignment, this.color, this.filePickImpl, this.multiRowsDisplay, @@ -71,6 +72,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { required QuillController controller, double toolbarIconSize = kDefaultIconSize, double toolBarSectionSpacing = 4, + WrapAlignment toolBarIconAlignment = WrapAlignment.left, bool showBoldButton = true, bool showItalicButton = true, bool showSmallButton = false, @@ -413,6 +415,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { final List children; final double toolBarHeight; final double? toolBarSectionSpacing; + final WrapAlignment? toolBarIconAlignment; final bool? multiRowsDisplay; /// The color of the toolbar. @@ -440,7 +443,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { initialLocale: locale, child: multiRowsDisplay ?? true ? Wrap( - alignment: WrapAlignment.center, + alignment: toolBarIconAlignment ?? WrapAlignment.center, runSpacing: 4, spacing: toolBarSectionSpacing ?? 4, children: children,