Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Text Flow Widget #590

Open
mike-ward opened this issue Jan 18, 2025 · 0 comments
Open

Add Text Flow Widget #590

mike-ward opened this issue Jan 18, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mike-ward
Copy link
Contributor

mike-ward commented Jan 18, 2025

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 mike-ward added the enhancement New feature or request label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant