Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to pass TextStyle parameter in the toTextSpan method #6

Open
basnetjiten opened this issue Feb 26, 2020 · 0 comments
Open

option to pass TextStyle parameter in the toTextSpan method #6

basnetjiten opened this issue Feb 26, 2020 · 0 comments

Comments

@basnetjiten
Copy link

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());
}

Repository owner deleted a comment from ali-thowfeek May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant