Flutter expand/collapse container without overflow error

Viewed 59

Does anybody have a clue how to achieve expand/collapse animation for a given Container widget?

I tried to use ExpandablePanel but it is not what I really want, because I want to render a Column within a Container, and if the Container is collapsed I want to show only 150px from it, otherwise it should have the height of the content.

Clicking on the arrow the Container should toggle it's state.

Below are some images which represents the goal:

Collapsed

Expanded

0 Answers
Related