Skip to content

[Mobile] UnderlinedSpan is not displayed on the selected text in the editor #417

@franciscrispin

Description

@franciscrispin

The UnderlinedSpan does not display for the text that the cursor is on in the flutter quill editor. Refer to the screenshots for examples. Note this issue is not referring to the underline option provided by the toolbar.

For more context about UnderlinedSpan, it seems to be based on the user device settings but the flutter quill editor seems like it does not follow the settings.

I suspect this may be intentional because the UnderlinedSpan may conflict with the underline toolbar option? If so, is there a workaround where we can include the UnderlinedSpan for the text that the cursor is on if the option is enabled in the user's device?

For more info about the UnderlinedSpan: https://stackoverflow.com/a/52587675

Examples

TextFormField with the text underlined when the cursor is on the text:

image

Flutter quill editor with the text NOT underlined when the cursor is on the text:

image

Screen recording to demonstrate:

quill_text_underline.mp4

Specs

  • Flutter version: 2.5.2
  • Device: Pixel 4 API 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions