Skip to content

Instantly share code, notes, and snippets.

@this-is-richard
Last active March 11, 2019 04:38
Show Gist options
  • Save this-is-richard/e4dacb06dcceaaa42ad7c31ac48e52e9 to your computer and use it in GitHub Desktop.
Save this-is-richard/e4dacb06dcceaaa42ad7c31ac48e52e9 to your computer and use it in GitHub Desktop.
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