From b4b917f531b0808fb9b64cdd1eda6e3e6e61cb59 Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Thu, 7 Dec 2023 12:28:23 +0100 Subject: [PATCH] Change heading sorting in editor --- lib/src/widgets/toolbar/buttons/dropdown_header_style.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/toolbar/buttons/dropdown_header_style.dart b/lib/src/widgets/toolbar/buttons/dropdown_header_style.dart index 1ce78a88..322cb125 100644 --- a/lib/src/widgets/toolbar/buttons/dropdown_header_style.dart +++ b/lib/src/widgets/toolbar/buttons/dropdown_header_style.dart @@ -28,13 +28,13 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState Style get _selectionStyle => controller.getSelectionStyle(); late final _valueToText = { - Attribute.header: context.loc.normal, Attribute.h1: context.loc.heading1, Attribute.h2: context.loc.heading2, Attribute.h3: context.loc.heading3, Attribute.h4: context.loc.heading4, Attribute.h5: context.loc.heading5, Attribute.h6: context.loc.heading6, + Attribute.header: context.loc.normal, }; Map? _headerTextStyles; @@ -105,14 +105,14 @@ 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, Attribute.h4: defaultStyles.h4!.style, Attribute.h5: defaultStyles.h5!.style, Attribute.h6: defaultStyles.h6!.style, + Attribute.header: + widget.options.style ?? defaultStyles.paragraph!.style, }; } }