loading image flutter code example
Example 1: 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 2: how to give placeholder to image.network
FadeInImage(image: NetworkImage(url), placeholder: AssetImage(assetName)