Skip to content

QuillToolbarSelectLineHeightStyleDropdownButton ignores defaultDisplayText #2680

@d-ukhanov

Description

@d-ukhanov

Have you checked for an existing issue?

Flutter Quill Version

11.5.0

Steps to Reproduce

  1. Add QuillSimpleToolbar with showLineHeightButton: true and set defaultDisplayText in QuillToolbarSelectLineHeightStyleDropdownButtonOptions.
  2. Use an empty document (no line-height attribute), type and select text.

Expected results

When no line-height attribute is present, the button label shows the provided defaultDisplayText.

Actual results

Label shows 1 (“Normal”); defaultDisplayText is ignored.

Additional Context

Suggested Fix

If attribute.value == null, prefer options.defaultDisplayText before falling back to "Normal".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions