flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

ParseExternalCss not working as expected.

Open nicks258 opened this issue 2 years ago • 4 comments

Thanks for the wonderful plugin. I was trying to applying external CSS using style: Style.fromCss(externalCss, (css, errors) { print("error" + css); print("errors" + errors.toString()); }), But CSS is not applying. When i try to print output of CSS Parser it shows like this. {import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&display=swap'): Style, .slider_section: Style, .about_section h1: Style, .about_section p: Style, .row: Style, .about_section a.button: Style, .desktop_foot_bg: Style, .about_section: Style, .slider_section img: Style, .calculator_frame: Style, .calculator_frame iframe: Style, .product_section: Style, .gold_des: Style, .products_card button, .products_card a.button: Style, .products_card a.button:hover: Style, .price_gold: Style, .graph_section: Style, .col .icon: Style, .img: Style, .col h5: Style, Looking for fast response. Please help (; @erickok My External CSS looks like External CSS

nicks258 avatar Feb 01 '22 09:02 nicks258

Can you include the css you are trying to use? You should also note that we might not support all of the css properties, for example ::hover and import.

erickok avatar Feb 01 '22 10:02 erickok

@erickok My External CSS looks like -> https://docs.google.com/document/d/1ZSNSr-fAc1EB2Sno-T2yMgoulVJGss9IynF56kK3ZKw/edit

nicks258 avatar Feb 01 '22 10:02 nicks258

And the html?

erickok avatar Feb 01 '22 12:02 erickok

Sample html -> https://docs.google.com/document/d/1Vd_H1lrNb-pqxE7d52YJEkQurVhdv65OxrPM1tOmkNY/edit?usp=sharing

nicks258 avatar Feb 02 '22 05:02 nicks258

Closing, since the issue is stale and it's not clear what the expected output is.

Sub6Resources avatar May 17 '23 21:05 Sub6Resources