'how to create this custom expandable list in flutter
Widget? buildIcon(BuildContext context) {
return RotationTransition(
turns: _iconTurns,
child: !_isExpanded ? const Icon(Icons.add) : const Icon(Icons.minimize),);}
Widget? _buildLeadingIcon(BuildContext context){
if (_effectiveAffinity(widget.controlAffinity)!= ListTileControlAffinity.leading)
return !_isExpanded
? RotationTransition(
turns: _iconTurns,
child: CircleAvatar(
maxRadius: 14,
backgroundColor: Const.buttonsColor.withOpacity(0.3),
child: Icon(
Icons.add,
color: Const.buttonsColor,
)))
: RotationTransition(
turns: _iconTurns,
child: Icon(
Icons.minimize,
color: Const.buttonsColor,
));
return buildIcon(context);
}
i want to create this expandable list tile in a flutter app.
I've customized ExpansionTile a little and changed the leading Widget.
Can somebody help me with this issue and show me some hint to add vertically dotted line for every item?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

