diff --git a/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart b/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart index dcd365a6..5f977b3b 100644 --- a/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart +++ b/lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart @@ -120,6 +120,12 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState ]; } + String get tooltip { + return widget.options.tooltip ?? + context.quillToolbarBaseButtonOptions?.tooltip ?? + context.loc.headerStyle; + } + QuillToolbarBaseButtonOptions? get baseButtonExtraOptions { return context.quillToolbarBaseButtonOptions; } @@ -195,9 +201,12 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState child: child, ); } - return IconButton( + return QuillToolbarIconButton( onPressed: _onDropdownButtonPressed, icon: child, + isSelected: false, + iconTheme: iconTheme, + tooltip: tooltip, ); }, ),