Created
November 27, 2019 10:48
-
-
Save rohankandwal/eff99215da57bc2998cc584b7fae8873 to your computer and use it in GitHub Desktop.
Basic Flutter ListView implementation
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
@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