I want to use FadeInImage with an icon as a placeholder.
FadeInImage has few constructors.
In a default constructor it takes
Icons are really just text from a font, so its tricky to make that into an image. The trick in the cookbook should work. Use a Stack with the Icon behind and a transparent placeholder.
body: Stack(
children: [
Center(child: Icon(Icons.something)),
Center(
child: FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
image:
'https://github.com/flutter/website/blob/master/_includes/code/layout/lakes/images/lake.jpg?raw=true',
),
),
],
),