Column(
children: [
SizedBox(
height: 50,
child: ListView.builder(
physics: BouncingScrollPhysics(
parent: AlwaysScrollableScrollPhysics()),
shrinkWrap: true,
scrollDirection: Axis.horizontal,
itemCount: widget.groups.length,
itemBuilder: (context, index) {
return new GestureDetector(
child: Container(
width: 100,
child: Card(
elevation: 5,
shape: RoundedRectangleBorder(
side: BorderSide(color: Colors.white70, width: 1),
borderRadius: BorderRadius.circular(20)),
child: Center(
child: Text(
widget.groups[index],
),
),
),
),
onTap: () {
print("I clicked it ");
},
);
},
)),
],
);