As there is always space constraints in mobile devices, expandable panel is a common widget used in mobile application. Like most developers, I tempted to look into third party flutter package such as expandable to implement such functionality.
However, my experience told me that the better way is first try to implement any functionality using Flutter built-in widgets, then only look into third party flutter packages when built-in widgets unable to deliver the desired functionalities. This approach will reduce unnecessary dependencies to third party flutter packages.
The following example taken from an article Flutter: Expansion/Collapse view, the author implemented the expandable panel using the built-in ExpansionTile and ExpansionPanelList widget:
If you are interested to reuse the source code of the screen above, please check out the expansion_collapse_view
branch of the git repository hosted at https://github.com/limcheekin/fluwix. Feel free to fork the repository and send me pull request.
I'd love to hear from you!