let

path

mainBundle

path

forResource

key

ofType

nil

For a more complete example, see the implementation of the
Flutter video_player plugin on pub.dev.

The ios_platform_images plugin on pub.dev wraps
up this logic in a convenient category. You fetch
an image as follows:

Objective-C:

Swift:

UIImage

flutterImageNamed

"icons/heart.png"

Loading iOS images in Flutter

When implementing Flutter by
adding it to an existing iOS app,
you might have images hosted in iOS that you
want to use in Flutter. To accomplish
that, use the ios_platform_images plugin
available on pub.dev.

Platform assets