Created
May 3, 2020 06:47
-
-
Save alandsilva26/54681f0527af179b197704c728fedb57 to your computer and use it in GitHub Desktop.
ExpansionTile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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