flutter

assets

graphics/

Then the graphics/my_icon.png, graphics/background.png
and graphics/dark/background.png files are also included.

Flutter uses asset variants when choosing resolution-appropriate
images. In the future, this mechanism might be extended to
include variants for different locales or regions,
reading directions, and so on.

Loading assets

Your app can access its assets through an
AssetBundle object.

The two main methods on an asset bundle allow you to load a
string/text asset (loadString()) or an image/binary asset (load())
out of the bundle, given a logical key. The logical key maps to the path
to the asset specified in the pubspec.yaml file at build time.

Loading text assets