bool expanded = false;
ExpansionPanelList(
expansionCallback: (int i, bool val) {
setState(() {
expanded = !val;
});
},
children: [
ExpansionPanel(
isExpanded: expanded,
body: Container(
padding: EdgeInsets.all(20),
child: Text("dfjskfjksjskkfs"),
),
headerBuilder: (BuildContext context, bool val) {
return Center(
child: Text("TAP ON ME ",style:TextStyle(fontSize: 20.0)),
);
})
],
)