From ac1138f1f4c186ec99a65b2f24d74d6e8d2fd914 Mon Sep 17 00:00:00 2001 From: Ellet Date: Tue, 26 Dec 2023 17:20:12 +0300 Subject: [PATCH] Fix tooltips --- .../select_header_style_dropdown_button.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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, ); }, ),