Last active
March 11, 2019 04:38
-
-
Save this-is-richard/e4dacb06dcceaaa42ad7c31ac48e52e9 to your computer and use it in GitHub Desktop.
This file contains 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
class ChatList extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return ListView.builder( | |
// itemCount: , <-- Normally we put the data array's length. | |
itemBuilder: (context, index) { | |
return ListTile( | |
title: Text('Contact $index'), | |
); | |
}, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment