Skip to content

Instantly share code, notes, and snippets.

@rohankandwal
Created November 27, 2019 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohankandwal/eff99215da57bc2998cc584b7fae8873 to your computer and use it in GitHub Desktop.
Save rohankandwal/eff99215da57bc2998cc584b7fae8873 to your computer and use it in GitHub Desktop.
Basic Flutter ListView implementation
@override
Widget build(BuildContext context) {
return ListView.builder(
itemBuilder: (context, index) {
return ListTile(
title: Text(list[index].title),
leading: Image.network(list[index].image_url),
subtitle: Text(list[index].subtitle),
);
},
itemCount: cartItems.length,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment