ImageViewer.circle constructor
ImageViewer.circle({
- required double dimension,
- String? urlImage,
- String? assetImage,
- Widget? onErrorWidget,
- Widget? onLoadingWidget,
- Color? backgroundColor,
- Border? border,
- BoxShadow? shadow,
- EdgeInsetsGeometry? margin,
- BoxFit? fit,
- Object? tag,
- Duration? duration,
- int? maxSize,
- Map<
String, String> ? headers, - Key? key,
- IconData? errorIcon,
Implementation
ImageViewer.circle({
required double dimension,
super.urlImage,
super.assetImage,
super.onErrorWidget,
super.onLoadingWidget,
super.backgroundColor,
super.border,
super.shadow,
final EdgeInsetsGeometry ? margin,
final BoxFit ? fit,
super.tag,
super.duration,
super.maxSize,
super.headers,
super.key,
super.errorIcon,
}) :
assert( urlImage == null || assetImage == null, "Only one image must be provided" ),
super(
width : dimension,
height : dimension,
margin : margin ?? EdgeInsets.zero,
readOnly : true,
fit : fit ?? BoxFit.cover,
viewerBlur : false,
viewerBlurSigma : 0,
shape : BoxShape.circle,
);