Home > database >  How to implement expandable panels in Flutter?
How to implement expandable panels in Flutter?

Time:12-17

Is there an easy way to create expandable/collapsible ?

Screenshot when you click on "Show More Detail" button, the description section expands with animation: enter image description here

CodePudding user response:

You should use ExpansionPanel widget for this.

Basic Expansion Panel Widget Example

CodePudding user response:

You can use the package expandable: ^5.0.1.

I prefer using this instead of ExpansionPanel because it is a lot more customizable and easy to use.

Flutter Expandable (pub.dev)

  • Related