@@ -73,6 +73,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
73
73
double toolbarIconSize = kDefaultIconSize,
74
74
double toolbarSectionSpacing = 4 ,
75
75
WrapAlignment toolbarIconAlignment = WrapAlignment .center,
76
+ bool showDividers = true ,
76
77
bool showBoldButton = true ,
77
78
bool showItalicButton = true ,
78
79
bool showSmallButton = false ,
@@ -280,7 +281,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
280
281
webVideoPickImpl: webVideoPickImpl,
281
282
iconTheme: iconTheme,
282
283
),
283
- if (isButtonGroupShown[0 ] &&
284
+ if (showDividers && isButtonGroupShown[0 ] &&
284
285
(isButtonGroupShown[1 ] ||
285
286
isButtonGroupShown[2 ] ||
286
287
isButtonGroupShown[3 ] ||
@@ -301,7 +302,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
301
302
showRightAlignment: showRightAlignment,
302
303
showJustifyAlignment: showJustifyAlignment,
303
304
),
304
- if (isButtonGroupShown[1 ] &&
305
+ if (showDividers && isButtonGroupShown[1 ] &&
305
306
(isButtonGroupShown[2 ] ||
306
307
isButtonGroupShown[3 ] ||
307
308
isButtonGroupShown[4 ] ||
@@ -317,7 +318,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
317
318
iconSize: toolbarIconSize,
318
319
iconTheme: iconTheme,
319
320
),
320
- if (isButtonGroupShown[2 ] &&
321
+ if (showDividers && isButtonGroupShown[2 ] &&
321
322
(isButtonGroupShown[3 ] ||
322
323
isButtonGroupShown[4 ] ||
323
324
isButtonGroupShown[5 ]))
@@ -358,7 +359,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
358
359
iconSize: toolbarIconSize,
359
360
iconTheme: iconTheme,
360
361
),
361
- if (isButtonGroupShown[3 ] &&
362
+ if (showDividers && isButtonGroupShown[3 ] &&
362
363
(isButtonGroupShown[4 ] || isButtonGroupShown[5 ]))
363
364
VerticalDivider (
364
365
indent: 12 ,
@@ -389,7 +390,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
389
390
isIncrease: false ,
390
391
iconTheme: iconTheme,
391
392
),
392
- if (isButtonGroupShown[4 ] && isButtonGroupShown[5 ])
393
+ if (showDividers && isButtonGroupShown[4 ] && isButtonGroupShown[5 ])
393
394
VerticalDivider (
394
395
indent: 12 ,
395
396
endIndent: 12 ,
0 commit comments