Type Aliases

Fit

type Fit = 
  | "fill"
  | "contain"
  | "cover"
  | "fitWidth"
  | "fitHeight"
  | "none"
  | "scaleDown";

How an image is scaled into its destination rect. Same set and same semantics as Skia's fit (which is Flutter's BoxFit): cover crops the source rather than overflowing the destination.

On this page

No Headings