dvStudioImageFits top-level constant

List<String> const dvStudioImageFits

How an image fills its box, by the names Flutter uses.

A design says it per image: a photograph fills its frame and is cropped, a logo fits inside and is not. Cover is the default every document written before this relied on, and it is also what an unrecognised name falls back to -- a document outlives the version that wrote it, and a page that will not render because one word is misspelled is worse than one that shows the picture.

Implementation

const List<String> dvStudioImageFits = <String>[
  'cover',
  'contain',
  'fill',
  'fitWidth',
  'fitHeight',
  'none',
  'scaleDown',
];