Skip to content

Programmatically open and close ExpansionTile Widget. #60387

@ritvij-saxena

Description

@ritvij-saxena

I was building a Card which would be placed at the bottom of the screen, ExpansionTile is the child of this widget. When I click this card, the showModalBottomSheet() is called in OnExpansionChanged, however, I don't know how to close it. An open and close feature would be nice.

code reference: https://gist.github.com/ritvij-saxena/4726b3a834b8aa4afb7305eda2c970da
Live demo: https://dartpad.dev/4726b3a834b8aa4afb7305eda2c970da

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical issues such as a build break or regressionc: new featureNothing broken; request for a new capabilitycustomer: chalk (g3)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions