Reputation: 109
I am making a shop app in flutter where there will list of the product images in the product detail page I want to display the first product image on the product page from an array, How can I pick the first image from an array and display it in network image!
Upvotes: 1
Views: 414
Reputation: 7670
You have to use the first position of an array. Like:
images[0]
since arrays starts from 0.
Upvotes: 2