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 to set the color according to Light/Dark mode #378

Closed
Krishna21Soni13 opened this issue Jun 4, 2020 · 4 comments
Closed

How to set the color according to Light/Dark mode #378

Krishna21Soni13 opened this issue Jun 4, 2020 · 4 comments

Comments

@Krishna21Soni13
Copy link

How we can customize the color for all tags from HTML string according to Light/Dark mode.

Screenshot 2020-06-04 at 12 15 36 PM

Requirement

  1. Want black background color for all boxes and white color for all text.

NOTE:- I am loading HTML content in InAppWebView.
Thanks

@pichillilorenzo
Copy link
Owner

Just add your CSS to your HTML. I didn't understand what is the problem with my plugin.

@Krishna21Soni13
Copy link
Author

Krishna21Soni13 commented Jun 4, 2020

Just add your CSS to your HTML. I didn't understand what is the problem with my plugin.

@pichillilorenzo By adding CSS it's working fine. Thanks

But

Screenshot 2020-06-04 at 8 30 58 PM

Now getting this error. Seems flutter_inappwebview pods are generating.

I simply add this "flutter_inappwebview: ^3.3.0+3" in pubspec.yaml file under dependencies and run the "flutter pub get" command.

NOTE:- I am adding this plugin in an existing flutter project.

@pichillilorenzo
Copy link
Owner

NOTE:- I am adding this plugin in an existing flutter project.

Then probably you need to add support for Swift on iOS (check this StackOverflow issue). Also, check the IMPORTANT Note for iOS section.

@Krishna21Soni13
Copy link
Author

@pichillilorenzo It is resolved. Thanks

This was referenced Jul 6, 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

2 participants