StoryImage.url constructor
StoryImage.url(})
Use this shorthand to fetch images/gifs from the provided url
Implementation
factory StoryImage.url(
String url, {
StoryController? controller,
Map<String, dynamic>? requestHeaders,
BoxFit fit = BoxFit.fitWidth,
Widget? loadingWidget,
Widget? errorWidget,
Key? key,
}) {
return StoryImage(
ImageLoader(
url,
requestHeaders: requestHeaders,
),
controller: controller,
fit: fit,
loadingWidget: loadingWidget,
errorWidget: errorWidget,
key: key,
);
}