new CircleAvatar(
backgroundColor: Colors.black87,
backgroundImage: new NetworkImage(url),
You can also use the frameBuilder
property. The good thing: you can implement your custom placeholder widget here.
Image.network('https://example.com/my-image',
height: 100,
frameBuilder: (context, child, frame, _) {
if (frame == null) {
// fallback to placeholder
return MyPlaceholderWidget();
}
return child;
}
)