Fix tooltips

pull/1649/head
Ellet 1 year ago
parent be9412f61b
commit ac1138f1f4
  1. 11
      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,
);
},
),

Loading…
Cancel
Save