'how add style to variables via easy_rich_text widget
how can i add style or conditional style to easy_rich_text widget? like this ${userData['invoiceAll']}$ and is it possible add condition to that?(if high red color, elseif low green color
EasyRichText(
"I authorize to change my credit_card below for ${userData['invoiceAll']}\$ on the ${userData['signupday']} Day of each Month ",
patternList: [
EasyRichTextPattern(
targetString: '${userData['invoiceAll']}\$',
style: TextStyle(fontSize: 15),
),
EasyRichTextPattern(
targetString: '${userData['signupday']}',
style: TextStyle(fontSize: 15),
),
),
Solution 1:[1]
i added hasSpecialCharacters: true and issue fixed
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sianami |
