Skip to content

Markers - Each change of style adds a new attachment for the same marker #137

@adrian-moisa

Description

@adrian-moisa

This behaviour happens because the markers get split in children nodes, each one containing a unique combination of styles. We need to track them by id such that we render only once. When the EditableTextLineRenderer collects the marker dat we need to keep a list of markers that have been cached. We need to cach only the first fragment of each unique id. Markers are already built to with unique ids by default.

Screen.Recording.2022-09-30.at.15.24.03.mov

Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closedEither incomplete specs, irrelevant, or not going to do

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions