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

How can I set background color? #38

Closed
Jessense opened this issue May 11, 2019 · 3 comments
Closed

How can I set background color? #38

Jessense opened this issue May 11, 2019 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Jessense
Copy link

Or does it support?

@daohoangson
Copy link
Owner

This plugin does support <div style="background-color: #f00">red background</div>. Is that what you were asking about?

@daohoangson daohoangson self-assigned this May 11, 2019
@daohoangson daohoangson added the question Further information is requested label May 11, 2019
@Jessense
Copy link
Author

@daohoangson Yes. I was planning to implement dark mode by changing background but I was surprised find that HtmlWidget automatically changes background when I change the theme.

@daohoangson
Copy link
Owner

Yeah, it will adapt to the app theme if provided. You can either use background-color inline style as above for you can use Flutter's DecoratedBox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants