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

Allow to apply for all occurrences of the text #1

Open
kadishmal opened this issue Jul 24, 2021 · 0 comments
Open

Allow to apply for all occurrences of the text #1

kadishmal opened this issue Jul 24, 2021 · 0 comments

Comments

@kadishmal
Copy link

At the moment I have the following code which applies a certain style to the source text.

    SpanBuilder(source).apply(
      TextSpan(
        text: searchString,
        style: TextStyle(fontWeight: FontWeight.bold),
      ),
    );

The above code applies the style only on the first match, while I need to apply on all matches till the end of the source text.

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

No branches or pull requests

1 participant