Issue
The ExpansionTile inherits from the ListTile, which has a fixed height. There are no input args for tile height.
I've tried wrapping the ExpansionTile in a Container widget with a hardcoded height, but that causes the children widgets to only take up the space within the hardcoded height. Currently, because the contents in the title
widget are large, I have a "Column overflowed by 23 pixels" message.
Is there any way to change an Expansion Tile's height? Or is there another Widget I could use that has the expansion/accordion feature?
Solution
I would probably copy ExpansionTile
and make your own version. Sizing ListTile
is easy with a Container
or SizedBox
, but ExpansionTile
is a material widget and it doesn't look like it was built with your use case in mind.
Answered By - Collin Jackson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.