UniversalFileImage constructor
const
UniversalFileImage(
- String url, {
- Key? key,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit fit = BoxFit.cover,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- FilterQuality filterQuality = FilterQuality.low,
- Widget? loadStateChanged(
- ExtendedImageState
- BoxShape shape = BoxShape.rectangle,
- BoxBorder? border,
- BorderRadius? borderRadius,
- Clip clipBehavior = Clip.antiAlias,
- bool enableLoadState = true,
- BeforePaintImage? beforePaintImage,
- AfterPaintImage? afterPaintImage,
- ExtendedImageMode mode = ExtendedImageMode.none,
- bool enableMemoryCache = true,
- bool clearMemoryCacheIfFailed = true,
- void onDoubleTap(
- ExtendedImageGestureState
- GestureConfig initGestureConfigHandler(
- ExtendedImageState
- bool enableSlideOutPage = false,
- BoxConstraints? constraints,
- CancellationToken? cancelToken,
- int retries = 3,
- Duration? timeLimit,
- Map<
String, String> ? headers, - bool cache = true,
- double scale = 1.0,
- Duration timeRetry = const Duration(milliseconds: 100),
- Key? extendedImageEditorKey,
- EditorConfig? initEditorConfigHandler(
- ExtendedImageState?
- Widget heroBuilderForSlidingPage()?,
- bool clearMemoryCacheWhenDispose = false,
- bool handleLoadingProgress = false,
- Key? extendedImageGestureKey,
- int? cacheWidth,
- int? cacheHeight,
- bool isAntiAlias = false,
- String? cacheKey,
- bool printError = true,
- double? compressionRatio,
- int? maxBytes,
- bool cacheRawData = false,
- String? imageCacheName,
- Duration? cacheMaxAge,
- EdgeInsets layoutInsets = EdgeInsets.zero,
- Widget? placeholder,
- Widget? errorPlaceholder,
- bool allowDrawingOutsideViewBox = false,
- ColorFilter? colorFilter,
- Client? httpClient,
- SvgTheme? theme,
- VoidCallback? onTap,
- double? fixedWidth,
- double? fixedHeight,
- Widget placeholderBuilder()?,
Implementation
const UniversalFileImage(
this.url, {
super.key,
this.semanticLabel,
this.excludeFromSemantics = false,
this.width,
this.height,
this.color,
this.opacity,
this.colorBlendMode,
this.fit = BoxFit.cover,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.centerSlice,
this.matchTextDirection = false,
this.gaplessPlayback = false,
this.filterQuality = FilterQuality.low,
this.loadStateChanged,
this.shape = BoxShape.rectangle,
this.border,
this.borderRadius,
this.clipBehavior = Clip.antiAlias,
this.enableLoadState = true,
this.beforePaintImage,
this.afterPaintImage,
this.mode = ExtendedImageMode.none,
this.enableMemoryCache = true,
this.clearMemoryCacheIfFailed = true,
this.onDoubleTap,
this.initGestureConfigHandler,
this.enableSlideOutPage = false,
this.constraints,
this.cancelToken,
this.retries = 3,
this.timeLimit,
this.headers,
this.cache = true,
this.scale = 1.0,
this.timeRetry = const Duration(milliseconds: 100),
this.extendedImageEditorKey,
this.initEditorConfigHandler,
this.heroBuilderForSlidingPage,
this.clearMemoryCacheWhenDispose = false,
this.handleLoadingProgress = false,
this.extendedImageGestureKey,
this.cacheWidth,
this.cacheHeight,
this.isAntiAlias = false,
this.cacheKey,
this.printError = true,
this.compressionRatio,
this.maxBytes,
this.cacheRawData = false,
this.imageCacheName,
this.cacheMaxAge,
this.layoutInsets = EdgeInsets.zero,
this.placeholder,
this.errorPlaceholder,
this.allowDrawingOutsideViewBox = false,
this.colorFilter,
this.httpClient,
this.theme,
this.onTap,
this.fixedWidth,
this.fixedHeight,
this.placeholderBuilder,
});