ImageViewer constructor
ImageViewer({
- Future<
void> onTap()?, - String? htmlImage,
- String? assetImage,
- bool? alive,
- double? width,
- double? height,
- Widget? onErrorWidget,
- Widget? onLoadingWidget,
- EdgeInsetsGeometry? margin = EdgeInsets.zero,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- Border? border,
- BoxShadow? shadow,
- BoxFit? fit = BoxFit.cover,
- BoxShape? shape = BoxShape.rectangle,
- Map<
String, String> ? headers, - Key? key,
- Object? tag,
- Duration? duration,
- int? maxSize,
Implementation
ImageViewer({
super.onTap,
super.htmlImage,
super.assetImage,
super.alive,
super.width,
super.height,
super.onErrorWidget,
super.onLoadingWidget,
super.margin,
super.backgroundColor,
super.borderRadius,
super.border,
super.shadow,
super.fit,
super.shape,
super.headers,
super.key,
super.tag,
super.duration,
super.maxSize,
}) :
assert( htmlImage == null || assetImage == null, "Only one image must be provided" ),
super(
readOnly : true,
filterOpacity : 0,
viewerBlur : false,
);