Last active
October 27, 2019 19:11
-
-
Save lamberger/72b357bee640d06bf591d3538f21bcfe to your computer and use it in GitHub Desktop.
GestureDetector Icon TapDart Flutter
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
| Card( | |
| child: ListTile( | |
| leading: GestureDetector( | |
| behavior: HitTestBehavior.translucent, | |
| onTap: () { | |
| print('Icon-tryck'); | |
| }, | |
| child: Container( | |
| width: 48, | |
| height: 48, | |
| padding: EdgeInsets.symmetric(vertical: 4.0), | |
| alignment: Alignment.center, | |
| child: CircleAvatar(), | |
| ), | |
| ), | |
| title: Text('Lamberger'), | |
| subtitle: Text('Lite text som sub...t'), | |
| trailing: Icon(Icons.more_vert), | |
| ), | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment