From 8eb00753df3c6de44729cadb924631cdf072065c Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Sun, 14 Nov 2021 18:48:26 -0800 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index b8f028e5..4126a8b8 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -60,7 +60,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { const QuillToolbar({ required this.children, this.toolBarHeight = 36, - this.toolBarSectionSpacing = 4, this.color, this.filePickImpl, this.multiRowsDisplay, @@ -71,7 +70,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { factory QuillToolbar.basic({ required QuillController controller, double toolbarIconSize = kDefaultIconSize, - double toolBarSectionSpacing, + double toolBarSectionSpacing = 4, bool showBoldButton = true, bool showItalicButton = true, bool showSmallButton = false, @@ -432,7 +431,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { @override Size get preferredSize => Size.fromHeight(toolBarHeight); - double get _toolBarSectionSpacing => toolBarSectionSpacing; + //double get _toolBarSectionSpacing => toolBarSectionSpacing; @override Widget build(BuildContext context) { @@ -442,7 +441,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { ? Wrap( alignment: WrapAlignment.center, runSpacing: 4, - spacing: _toolBarSectionSpacing, + //spacing: _toolBarSectionSpacing, children: children, ) : Container(