imageHashPreview static method

Widget imageHashPreview({
  1. required String imagePath,
  2. double? width,
  3. double? height,
  4. Color? placeholderColor = const Color.fromRGBO(224, 224, 224, 1),
  5. Curve curve = Curves.easeOut,
  6. BoxFit fit = BoxFit.cover,
  7. int decodingHeight = 32,
  8. int decodingWidth = 32,
  9. Duration duration = const Duration(milliseconds: 1000),
  10. void onDecoded()?,
  11. void onStarted()?,
  12. void onReady()?,
  13. void onDisplayed()?,
  14. BlendMode? colorBlendMode,
  15. Color? color,
  16. Alignment alignment = Alignment.center,
  17. Rect? centerSlice,
  18. Animation<double>? opacity,
  19. FilterQuality filterQuality = FilterQuality.low,
  20. ImageRepeat repeat = ImageRepeat.noRepeat,
  21. bool matchTextDirection = false,
  22. bool gapLessPlayback = false,
  23. String? semanticLabel,
  24. ImageFrameBuilder? frameBuilder,
  25. ImageLoadingBuilder? loadingBuilder,
  26. ImageErrorWidgetBuilder? errorBuilder,
  27. bool isAntiAlias = false,
  28. Map<String, String>? headers,
  29. int? cacheWidth,
  30. int? cacheHeight,
  31. double scale = 1.0,
  32. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  33. Future<PaletteGenerator?>? onPaletteReceived(
    1. Future<PaletteGenerator>?
    )?,
  34. Key? key,
})

Implementation

static Widget imageHashPreview({
  required final String imagePath,
  final double? width,
  final double? height,
  final Color? placeholderColor = const Color.fromRGBO(224, 224, 224, 1),
  final Curve curve = Curves.easeOut,
  final BoxFit fit = BoxFit.cover,
  final int decodingHeight = 32,
  final int decodingWidth = 32,
  final Duration duration = const Duration(milliseconds: 1000),
  final void Function()? onDecoded,
  final void Function()? onStarted,
  final void Function()? onReady,
  final void Function()? onDisplayed,
  final BlendMode? colorBlendMode,
  final Color? color,
  final Alignment alignment = Alignment.center,
  final Rect? centerSlice,
  final Animation<double>? opacity,
  final FilterQuality filterQuality = FilterQuality.low,
  final ImageRepeat repeat = ImageRepeat.noRepeat,
  final bool matchTextDirection = false,
  final bool gapLessPlayback = false,
  final String? semanticLabel,
  final ImageFrameBuilder? frameBuilder,
  final ImageLoadingBuilder? loadingBuilder,
  final ImageErrorWidgetBuilder? errorBuilder,
  final bool isAntiAlias = false,
  final Map<String, String>? headers,
  final int? cacheWidth,
  final int? cacheHeight,
  final double scale = 1.0,
  final BorderRadiusGeometry borderRadius = BorderRadius.zero,
  final Future<PaletteGenerator?>? Function(Future<PaletteGenerator>?)?
      onPaletteReceived,
  Key? key,
}) {
  return ImageHashPreview(
    imagePath: imagePath,
    width: width,
    height: height,
    placeholderColor: placeholderColor,
    curve: curve,
    fit: fit,
    decodingHeight: decodingHeight,
    decodingWidth: decodingWidth,
    duration: duration,
    onDecoded: onDecoded,
    onReady: onReady,
    onStarted: onStarted,
    onDisplayed: onDisplayed,
    colorBlendMode: colorBlendMode,
    color: color,
    alignment: alignment,
    centerSlice: centerSlice,
    opacity: opacity,
    filterQuality: filterQuality,
    repeat: repeat,
    matchTextDirection: matchTextDirection,
    gapLessPlayback: gapLessPlayback,
    semanticLabel: semanticLabel,
    frameBuilder: frameBuilder,
    loadingBuilder: loadingBuilder,
    errorBuilder: errorBuilder,
    isAntiAlias: isAntiAlias,
    headers: headers,
    cacheWidth: cacheWidth,
    cacheHeight: cacheHeight,
    scale: scale,
    borderRadius: borderRadius,
    onPaletteReceived: onPaletteReceived,
    key: key,
  );
}