Skip to content

Instantly share code, notes, and snippets.

@alandsilva26
Created May 3, 2020 06:47
Show Gist options
  • Select an option

  • Save alandsilva26/54681f0527af179b197704c728fedb57 to your computer and use it in GitHub Desktop.

Select an option

Save alandsilva26/54681f0527af179b197704c728fedb57 to your computer and use it in GitHub Desktop.
ExpansionTile
return Expanded(
child: ListView(
children: gridTiles
.map(
(tile) => ListTile(
contentPadding: EdgeInsets.all(10),
leading: ClipRRect(
borderRadius: BorderRadius.circular(4),
child: Container(
padding: EdgeInsets.all(7),
color: tile['color'],
child: Icon(
tile['icon'],
color: Colors.white,
),
),
),
// title: Text("Test"),
title: ExpansionTile(
title: Text(
// tile['title'],
'',
style: TextStyle(
color: Colors.black,
),
),
children: <Widget>[
Text("test"),
],
),
),
)
.toList(),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment