placeholder image code example
Example 1: lorum picsum
<img src="https://picsum.photos/200"/>;
Example 2: lorem picsum
<img src="https://picsum.photos/200/300?random=1">
<img src="https://picsum.photos/200/300?random=2">
Example 3: placeholder image
// This is the URL for the placeholder image
// To resize the image, change the last part of the URL to any size you want
https://via.placeholder.com/350x150
Example 4: lorem picsum
// For 200px by 300px
https://picsum.photos/200/300
// For square
https://picsum.photos/200
Example 5: how to give placeholder to image.network
FadeInImage(image: NetworkImage(url), placeholder: AssetImage(assetName)
Example 6: create transparent placeholder img
from PIL import Image
img = Image.new('RGB', (32,32), color='white')
img.save('empty.png')
quit()