I'm trying to fit each toggle button into each gridview container. Basically with my code all my toggle buttons are trying to fit into one grid view container instead of separated grid view container. Is there any way to mix these two widgets together?
GridView.count(
crossAxisCount: 2,
physics: NeverScrollableScrollPhysics(),
children: <Widget>[
Padding(
padding: const EdgeInsets.all(12.0),
child: ToggleButtons(
selectedColor: Colors.red,
isSelected: selected,
onPressed: onControlPress,
children: <Widget>[
Icon(Icons.info),
Icon(Icons.title),
Icon(Icons.info),
Icon(Icons.info),
],
),
),
],
),