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

Handle html as starting text #33

Closed
giorgio79 opened this issue May 10, 2022 · 0 comments
Closed

Handle html as starting text #33

giorgio79 opened this issue May 10, 2022 · 0 comments
Labels
wontfix This will not be worked on

Comments

@giorgio79
Copy link

Any plans for having HTML as base text and adding tags on top of that?
This would introduce another can of worms, eg matching across tags etc., but there are some nice solutions like https://github.com/padolsey/findAndReplaceDOMText

EasyRichText(
  "I want <span class="whatever">blue font. I want</span> bold font. I want italic font.",
  patternList: [
    EasyRichTextPattern(
      targetString: 'want blue',
      style: TextStyle(color: Colors.blue),
    ),
    EasyRichTextPattern(
      targetString: 'bold',
      style: TextStyle(fontWeight: FontWeight.bold),
    ),
    EasyRichTextPattern(
      targetString: 'italic',
      style: TextStyle(fontStyle: FontStyle.italic),
    ),
  ],
),
@2000calories 2000calories added the enhancement New feature or request label May 10, 2022
@2000calories 2000calories added wontfix This will not be worked on and removed enhancement New feature or request labels May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants