rich_text_widget

Creator: coderz1093

Last updated:

Add to Cart

Description:

rich text widget

README of Chinese #
Rich text is required by many apps, and Flutter also provides rich text functions, but for multilingual apps, RichText is not easy to use, or
can’t be used.
rich_text_widget is simple and convenient to use, no need to split the string
Example:
RichTextWidget(
// default Text
Text(
'You have pushed the button this many times:',
style: TextStyle(color: Colors.black),
),
// rich text list
richTexts: [
BaseRichText(
"pushed",
style: TextStyle(color: Colors.yellow),
onTap: () => {print("touch pushed")},
),
BaseRichText(
"button",
style: TextStyle(color: Colors.red),
onTap: () => {print("touch button")},
),
],
)
copied to clipboard
Demo: #

Props : #
RichTextWidget:



Name
type




defaultText
Text


richTexts
List <BaseRichText>


caseSensitive
bool (defalut = true)



BaseRichText:



Name
type




data
String


style
TextStyle


onTap
Function

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.