ui icon indicating copy to clipboard operation
ui copied to clipboard

Add Text Flow Widget

Open mike-ward opened this issue 11 months ago • 0 comments

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.

mike-ward avatar Jan 18 '25 16:01 mike-ward