taha
taha

Reputation: 109

how can i display first image which is an array in network image in flutter

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

Answers (1)

JideGuru
JideGuru

Reputation: 7670

You have to use the first position of an array. Like:

images[0] since arrays starts from 0.

Upvotes: 2

Related Questions