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

ModifierWithoutDefault for functions without a measurable size #114

Open
eygraber opened this issue Dec 9, 2022 · 0 comments
Open

ModifierWithoutDefault for functions without a measurable size #114

eygraber opened this issue Dec 9, 2022 · 0 comments

Comments

@eygraber
Copy link

eygraber commented Dec 9, 2022

Is your feature request related to a problem? Please describe.
The compose API guidelines say that:

Element functions without a measurable content size (e.g. Canvas, which draws arbitrary user content in the size available) MAY require the modifier parameter and omit the default value.

Describe the solution you'd like
That the rule doesn't fail for functions without a measurable size.

Describe alternatives you've considered
Suppressing the rule in situations where there's a function without a measurable size.

I'm not sure if the Layout function falls into this category or not. Maybe a separate issue is warranted, but as an aside, should this rule apply to non public functions?

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

1 participant