Skip to content

ModifierWithoutDefault for functions without a measurable size #114

@eygraber

Description

@eygraber

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions