Skip to content

UnsupportedError: Cannot add to a fixed-length list when selecting or rendering large text in QuillEditor #2487

@alhelali

Description

@alhelali

Have you checked for an existing issue?

Flutter Quill Version

11.0.0

Steps to Reproduce

I am encountering an UnsupportedError: Cannot add to a fixed-length list when using QuillEditor to handle large text. The error occurs specifically when I try to select (highlight) a large portion of text or when the editor attempts to render the content. Interestingly, copying the text works fine, but the error is thrown during the paint operation.

Here is the full error message:

The following UnsupportedError was thrown during paint():
Unsupported operation: Cannot add to a fixed-length list

Expected results

The editor should be able to handle large text selections and rendering without throwing an UnsupportedError.

Actual results

The editor throws an UnsupportedError when attempting to add to a fixed-length list during the paint operation.

Additional Context

Screenshots / Video demonstration

[Attach media here]

Logs
[Paste logs here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededmoderateIssues that are important for improving functionality or user experience.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions