Expandable ListView flutter
1,081
You're looking for the ExpansionTile widget. It's used for this kind of task. Here is the documentation on it: http://api.flutter.dev/flutter/material/ExpansionTile-class.html
Here is a quick example:
ExpansionTile(
childrenPadding: const EdgeInsets.all(8.0),
leading: Container(
decoration: BoxDecoration(
color: Colors.purple,
shape: BoxShape.circle,
),
child: Text(
'1',
),
),
title: Text(
'Introduction',
style: Theme.of(context).textTheme.headline6,
),
children: children // Some list of List Tile's or widget of that kind,
),

Author by
SinaMN75
Updated on December 30, 2022Comments
-
SinaMN75 6 minutes
-
OMi Shah over 1 yearProbably you want to use the
ExpansionTile
widget. api.flutter.dev/flutter/material/ExpansionTile-class.html -
SinaMN75 over 1 year@OMiShah :-/ Thanks, why finding it was so hard...
-
OMi Shah over 1 yearit happens, no worries :p
-