Loading assets: Loading images

  • Flutter can load resolution-appropriate images for the current device pixel ratio.
  • To load an image, use the AssetImage class in a widget’s build method.
  • AssetImage understands how to map a logical requested asset onto one that most closely matches the current device pixel ratio. In order for this mapping to work, assets should be arranged according to a particular directory structure:.

Related concepts

Loading assets: Loading images — Structure map

Clickable & Draggable!

Loading assets: Loading images — Related pages: