Skip to content

Make Clip widgets do nothing when they rececive Clip.none #98483

@nt4f04uNd

Description

@nt4f04uNd

Currently Clip widgets throw when they receive Clip.none.
This creates problems such as verbose code when doing conditional rendering, losing state, and as a side-effect of this - a need for documentation for how to preseve the state everywhere where there is a clipBehavior.

We should consider instead making them to just draw nothing.

Filed from #98252 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: qualityA truly polished experiencec: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions