flutter-expandable
flutter-expandable copied to clipboard
tapBodyToExpand/Collapse not working with containers
Collapsed/Expanded is in a container but only the header can expand/collapse
theme: ExpandableThemeData(
hasIcon: true,
useInkWell: true,
tapBodyToCollapse: true,
tapBodyToExpand: true,
tapHeaderToExpand: true,
),
header: ListTile(
leading: CircleAvatar(
backgroundColor: Colors.blue,
child: Text(
'AB',
),
title: Text('Title',
overflow: TextOverflow.ellipsis, maxLines: 1),
subtitle: Text('SubTitle'),
),
collapsed: Container(
padding: EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(longText,
maxLines: 5,
overflow: TextOverflow.ellipsis,
style: TextStyle(
height: 2,
))),
expanded: Container(
padding: EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(longText,
style: TextStyle(
height: 2,
))),
),```
Also related to #50