How to update animated container with longPress which lies under the listview builder
widget.meetingdetails.forEach((tasks) {
if (tasks['task'] == 'Meeting') {
_meetinglist.add(GestureDetector(
onLongPress: () {
setState(() {
heightChange = heightChange == 130 ? 150 : 130;
});
},
child: AnimatedContainer(
duration: new Duration(milliseconds: 500),
height: heightChange,
padding: EdgeInsets.symmetric(horizontal: 30, vertical: 10),)).......
above code is the way i make the list and below code is how i implement it on the listView.builder
return ListView.builder(
itemCount: _meetinglist.length,
itemBuilder: (BuildContext context, int index) => _meetinglist[index],
padding: EdgeInsets.only(bottom: 60), physics: BouncingScrollPhysics(),
);
Here when i longPress on the container all the items in the list updates. I need only the pressed container to update

