fayeed/flutter_parsed_text

Lack of flags/modifiers

sm2017 opened this issue · 1 comments

There is no way to set flags/modifiers

image

Check the example below, MatchText class has regexOptions property which you can use:

MatchText(
  pattern: r"\B#+([\w]+)\b", // a custom pattern to match
  regexOptions: RegexOptions(
    multiLine : false,
    caseSensitive : false,
    unicode : false,
    dotAll : false
  ),
  style: TextStyle(
    color: Colors.pink,
    fontSize: 24,
  ), // custom style to be applied to this matched text
  onTap: (url) async {
  // do something here with passed url
  }, // callback funtion when the text is tapped on
)