UniversalImage constructor
const
UniversalImage(
- String imageUri, {
- Key? key,
- double scale = 1.0,
- IconData? icon,
- ImageFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- BlendMode? colorBlendMode,
- BoxFit? fit,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.low,
- int? cacheWidth,
- int? cacheHeight,
- bool allowDrawingOutsideViewBox = false,
- bool svgSkiaMode = false,
- double? size,
- TextDirection? textDirection,
- Widget? placeholder,
- Widget? errorPlaceholder,
- bool cache = true,
- bool enableMemoryCache = true,
- bool clearMemoryCacheIfFailed = true,
- bool clearMemoryCacheWhenDispose = false,
- String assetPrefix = 'assets',
- double? compressionRatio,
- int? maxBytes,
- ImageEngine imageEngine = ImageEngine.extendedImage,
- Object? heroTag,
- ColorFilter? colorFilter,
Create image widet base on uri
Implementation
const UniversalImage(
this.imageUri, {
Key? key,
this.scale = 1.0,
this.icon,
this.frameBuilder,
this.errorBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.width,
this.height,
this.color,
this.colorBlendMode,
this.fit,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.centerSlice,
this.matchTextDirection = false,
this.gaplessPlayback = false,
this.isAntiAlias = false,
this.filterQuality = FilterQuality.low,
this.cacheWidth,
this.cacheHeight,
this.allowDrawingOutsideViewBox = false,
this.svgSkiaMode = false,
this.size,
this.textDirection,
this.placeholder,
this.errorPlaceholder,
this.cache = true,
this.enableMemoryCache = true,
this.clearMemoryCacheIfFailed = true,
this.clearMemoryCacheWhenDispose = false,
this.assetPrefix = 'assets',
this.compressionRatio,
this.maxBytes,
this.imageEngine = ImageEngine.extendedImage,
this.heroTag,
this.colorFilter,
}) : super(key: key);