networkImage static method
Implementation
static Widget networkImage({
required String image,
required ImageProvider placeholder,
Widget? placeholderWidget,
double? size,
BoxFit fit = BoxFit.fill,
}) {
return FadeInImage(
key: ValueKey(image),
width: size,
height: size,
placeholder: placeholder,
placeholderFit: fit,
placeholderErrorBuilder: (context, error, stackTrace) {
return placeholderWidget ?? Container();
},
image: NetworkImage(image),
fit: fit,
imageErrorBuilder: (context, error, stackTrace) {
return placeholderWidget ?? Container();
},
);
}