@@ -59,6 +59,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
59
59
const QuillToolbar ({
60
60
required this .children,
61
61
this .toolBarHeight = 36 ,
62
+ this .toolBarSectionSpacing,
62
63
this .color,
63
64
this .filePickImpl,
64
65
this .multiRowsDisplay,
@@ -69,6 +70,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
69
70
factory QuillToolbar .basic ({
70
71
required QuillController controller,
71
72
double toolbarIconSize = kDefaultIconSize,
73
+ double toolBarSectionSpacing = 4 ,
72
74
bool showBoldButton = true ,
73
75
bool showItalicButton = true ,
74
76
bool showSmallButton = false ,
@@ -147,6 +149,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
147
149
return QuillToolbar (
148
150
key: key,
149
151
toolBarHeight: toolbarIconSize * 2 ,
152
+ toolBarSectionSpacing: toolBarSectionSpacing,
150
153
multiRowsDisplay: multiRowsDisplay,
151
154
locale: locale,
152
155
children: [
@@ -409,6 +412,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
409
412
410
413
final List <Widget > children;
411
414
final double toolBarHeight;
415
+ final double ? toolBarSectionSpacing;
412
416
final bool ? multiRowsDisplay;
413
417
414
418
/// The color of the toolbar.
@@ -438,7 +442,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
438
442
? Wrap (
439
443
alignment: WrapAlignment .center,
440
444
runSpacing: 4 ,
441
- spacing: 4 ,
445
+ spacing: toolBarSectionSpacing ?? 4 ,
442
446
children: children,
443
447
)
444
448
: Container (
0 commit comments