body: Container(color: Colors.white,
child: SingleChildScrollView(
child : Column(
children : [
Padding(paddi
Instead of initiallyExpanded: false,
you can use initiallyExpanded: index == 0
. By doing this you will check the index of your item and if it is 0, it will be expanded initially.
ListView.builder(itemCount: 10, itemBuilder: (context, index) {
return ExpansionTile(
initiallyExpanded: index == 0,
title: Text('Title #$index'),
children: [
Text('Expansion #$index'),
],
);
}),
To collapse ExpandedTile
after choosing item you can check following links
Flutter - Collapsing ExpansionTile after choosing an item
Flutter- ExpansionTile expand and collapse on click