Fix _headerTextStyles

pull/1575/head
Aleksei 1 year ago
parent 9966d17851
commit e748ad7f3d
  1. 2
      lib/src/widgets/toolbar/buttons/dropdown_header_style.dart

@ -105,6 +105,8 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState
if (_headerTextStyles == null) {
final defaultStyles = DefaultStyles.getInstance(context);
_headerTextStyles = {
Attribute.header:
widget.options.style ?? defaultStyles.paragraph!.style,
Attribute.h1: defaultStyles.h1!.style,
Attribute.h2: defaultStyles.h2!.style,
Attribute.h3: defaultStyles.h3!.style,

Loading…
Cancel
Save