Skip to content

Percentage and rem support for css attributes #598

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

Closed
glennmichaelmejias opened this issue Mar 31, 2021 · 2 comments
Closed

Percentage and rem support for css attributes #598

glennmichaelmejias opened this issue Mar 31, 2021 · 2 comments

Comments

@glennmichaelmejias
Copy link

Is percentage and rem for css attributes supported?
Style(
width: Getpercent("50%"),
padding: Getrem("1rem")
)
Similar to that.
Thanks.

@tneotia
Copy link
Contributor

tneotia commented Apr 1, 2021

In some situations it is supported, however there are no constructors to support that through dart. If you can modify the HTML, you can add those inline and they will be parsed correctly.

If you have a use case for needing through Dart please explain further and I'd be happy to try and add the feature!

@erickok
Copy link
Contributor

erickok commented Nov 29, 2021

Standard css syntx percentage and rem is supported. Let us know if there is still something missing for you.

@erickok erickok closed this as completed Nov 29, 2021
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