diff --git a/lib/src/widgets/toolbar/simple_toolbar.dart b/lib/src/widgets/toolbar/simple_toolbar.dart index 7ae05372..5d93b666 100644 --- a/lib/src/widgets/toolbar/simple_toolbar.dart +++ b/lib/src/widgets/toolbar/simple_toolbar.dart @@ -195,12 +195,20 @@ class QuillSimpleToolbar extends StatelessWidget color: configurations.sectionDividerColor, space: configurations.sectionDividerSpace, ), - if (configurations.showHeaderStyle) - QuillToolbarSelectHeaderStyleDropdownButton( - controller: globalController, - options: toolbarConfigurations - .buttonOptions.selectHeaderStyleDropdownButton, - ), + if (configurations.showHeaderStyle) ...[ + if (configurations.headerStyleType.isOriginal) + QuillToolbarSelectHeaderStyleButtons( + controller: globalController, + options: + toolbarConfigurations.buttonOptions.selectHeaderStyleButtons, + ) + else + QuillToolbarSelectHeaderStyleDropdownButton( + controller: globalController, + options: toolbarConfigurations + .buttonOptions.selectHeaderStyleDropdownButton, + ), + ], if (configurations.showDividers && configurations.showHeaderStyle && isButtonGroupShown[2] &&