Skip to content

Add Text Flow Widget #590

Open
Open
@mike-ward

Description

@mike-ward

Need a text flow widget that can contain multiple text chunks of different types like bold, italic, hyperlink, etc. When rendered, it should wrap text within the bounding layout control.

Essentially, the equivalent of the paragraph block (<p>) in HTML.

It looks like ui.chunkview is a start in this direction but it does not flow/wrap text like <p>

I mention this now because of my experience with the Avalonia project. It took years to get a working text flow widget and it only materialized shortly before their first "1.0" release.

Currently, I'm working on a proof-of-concept for a Bluesky Client.

Image

The issue I currently have is the post body can't be rendered as a paragraph. The project currently just wraps the text at 45 columns and renders it using ui.label. Tried using ui.chunkview, but as mentioned earlier, there no text flow.

ui.textbox supports wrapping and multiline but cannot embed hyperlinks or bold text.

Both ui.chunkview and ui.textbox cause segmentation faults a various times. ui.label is the only way I could get stable multiline text rendered.

Not complaining. I'm aware this is project is alpha at the moment. Actually, I'm a bit surprised it works as well as it does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions