hathibelagal-dev / hathibelagal-dev/css_text_for_flutter
option to pass TextStyle parameter in the toTextSpan method
Open
- Dominant language
- C++
- Stars
- 56
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
Can you help me change the definition of toTextSpan method. I want to change the theme based on the dark and light theme which would be only posssible with the below code:
static TextSpan toTextSpan(BuildContext context, String htmlContent,TextStyle textStyle,
{Function linksCallback}) {
Parser p = Parser(context, htmlContent, linksCallback: linksCallback);
return TextSpan(style:textStyle, text: "", children: p.parse());
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.