Skip to content

Conversation

NRijnberg
Copy link
Contributor

This widget makes it really easy to make Rich text's with multiple (highlighted) inline actions in it.

Copy link
Member

@Guldem Guldem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also some test to ensure everything works correctly

Map<String, VoidCallback>? actions,
}) {
/// matches [text](action) with an action, or [text] without an action
final regex = RegExp(r'\[([^\]]+?)\](?:\((.*?)\))?');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: What if the text contains a [] can we escape it?

Maybe a feature for later moment when needed 😉

@NRijnberg NRijnberg merged commit 4a6f6be into main Aug 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants