Skip to content

Codeshare between ExpansionTile and its Cupertino variant #163552

@victorsanni

Description

@victorsanni

Document Link

flutter.dev/go/expansible-state-mixin

What problem are you solving?

This issue contains a proposal to add a CupertinoCollapsible widget, an animated container that can be expanded or collapsed.

Image

The behavior of this CupertinoCollapsible is very similar to ExpansionTile, which sits nicely in the Material library.

Image

Due to their similarity, it makes sense for CupertinoCollapsible to codeshare with ExpansionTile, instead of having its own independent implementation. This would also make it easier for developers to build components that require expanding/collapsing behavior.

WIP PRs:

Approach 1: ExpansibleStateMixin
Approach 2: Expansible

Metadata

Metadata

Assignees

No one assigned

    Labels

    📜Issue was posted to Discord. Remove to have the issue reannounced. (For "design doc", "emergency")P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterdesign docTracks a design discussion documentf: cupertinoflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions