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

IN 1.0.0 new version how put backgroundColor and TextStyle in the same? #288

Closed
betobon opened this issue May 13, 2020 · 1 comment
Closed

Comments

@betobon
Copy link

betobon commented May 13, 2020

IN 1.0.0 new version how put backgroundColor and TextStyle in the same html?

in old version

children: [
Html(
data: controller.html,
padding: EdgeInsets.all(2.0),
backgroundColor: Colors.grey[300],
defaultTextStyle: TextStyle( fontWeight: FontWeight.bold,
fontSize: 23),

                            ),

but I can't now

@kkizlaitis
Copy link

I think it is explained here quite well: https://github.com/Sub6Resources/flutter_html/wiki/Style

If you want to define a default style, the CSS selector is *.

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

3 participants