2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
80 stars 33 forks source link

Apply Styling in nested EasyRichTextPattern #39

Closed nawaf11 closed 1 year ago

nawaf11 commented 2 years ago

Welcome, Many Thanks for the Library

I want to do styling in nested EasyRichTextPattern..

for Example any text between "" to be red, And {[..]} to be blue even if it found between "..", Check the image:

image

iI have this patternList:

patternList = [ EasyRichTextPattern(targetString: '"(.+?)"', style: TextStyle(color: darkRed)), EasyRichTextPattern(targetString: "(\\{\\[(\.+?)\\]\\})", style: TextStyle(color: primaryGreen)) ]

nawaf11 commented 1 year ago

I hope there's a Plan to this enhancement 🙏🏻

2000calories commented 1 year ago

It is a useful feature. But I have not find a way to implement it.

2000calories commented 1 year ago

try the latest version. easy_rich_text: '^2.0.0'