user placeholder image code example

Example 1: 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 2: how to give placeholder to image.network

FadeInImage(image: NetworkImage(url), placeholder: AssetImage(assetName)

Example 3: create transparent placeholder img

from PIL import Image
img = Image.new('RGB', (32,32), color='white')
img.save('empty.png')
quit()

Example 4: create transparent placeholder img

convert -size 32x32 xc:white empty.jpg