NetImage constructor
const
NetImage(
- String imageUrl, {
- Key? key,
- ImageWidgetBuilder? imageBuilder,
- PlaceholderWidgetBuilder? placeholder,
- LoadingErrorWidgetBuilder? errorWidget,
- Duration fadeOutDuration = const Duration(milliseconds: 300),
- Curve fadeOutCurve = Curves.easeOut,
- Duration fadeInDuration = const Duration(milliseconds: 700),
- Curve fadeInCurve = Curves.easeIn,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- Map<
String, String> ? httpHeaders, - BaseCacheManager? cacheManager,
- bool useOldImageOnUrlChange = false,
- Color? color,
- BlendMode? colorBlendMode,
- bool fullScreen = false,
- bool hero = false,
- BorderRadius? borderRadius,
- GestureTapCallback? onTap,
Implementation
const NetImage(
this.imageUrl, {
super.key,
this.imageBuilder,
this.placeholder,
this.errorWidget,
this.fadeOutDuration = const Duration(milliseconds: 300),
this.fadeOutCurve = Curves.easeOut,
this.fadeInDuration = const Duration(milliseconds: 700),
this.fadeInCurve = Curves.easeIn,
this.width,
this.height,
this.fit,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.httpHeaders,
this.cacheManager,
this.useOldImageOnUrlChange = false,
this.color,
this.colorBlendMode,
this.fullScreen = false,
this.hero = false,
this.borderRadius,
this.onTap,
});