flutter_html
flutter_html copied to clipboard
ParseExternalCss not working as expected.
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
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 My External CSS looks like -> https://docs.google.com/document/d/1ZSNSr-fAc1EB2Sno-T2yMgoulVJGss9IynF56kK3ZKw/edit
And the html?
Sample html -> https://docs.google.com/document/d/1Vd_H1lrNb-pqxE7d52YJEkQurVhdv65OxrPM1tOmkNY/edit?usp=sharing
Closing, since the issue is stale and it's not clear what the expected output is.