objectScaleDown method

Image objectScaleDown()

object-fit-scale-down - 缩小以适应,但不放大

Implementation

Image objectScaleDown() {
  return Image(
    image: image,
    width: width,
    height: height,
    fit: BoxFit.scaleDown,
    alignment: alignment,
    repeat: repeat,
    matchTextDirection: matchTextDirection,
    gaplessPlayback: gaplessPlayback,
    filterQuality: filterQuality,
    isAntiAlias: isAntiAlias,
    frameBuilder: frameBuilder,
    loadingBuilder: loadingBuilder,
    errorBuilder: errorBuilder,
    semanticLabel: semanticLabel,
    excludeFromSemantics: excludeFromSemantics,
    color: color,
    colorBlendMode: colorBlendMode,
    opacity: opacity,
  );
}