image loader flutter code example
Example 1: network image url
Image.network(
'https://picsum.photos/250?image=9',
)
Example 2: flutter image load
Image.asset(name) is essentially Image(image: AssetImage(name)),
Image.file(path) is essentially Image(image: FileImage(File(path))),
Image.network(url) is essentially Image(image: NetworkImage(url)),
Image.memory(list) is essentially Image(image: MemoryImage(list))
Example 3: how to give placeholder to image.network
FadeInImage(image: NetworkImage(url), placeholder: AssetImage(assetName)