ios_platform_images

Last updated:

0 purchases

ios_platform_images Image
ios_platform_images Images
Add to Cart

Description:

ios platform images

iOS Platform Images #
A Flutter plugin to share images between Flutter and iOS.
This allows Flutter to load images from Images.xcassets and iOS code to load
Flutter images.
When loading images from Image.xcassets the device specific variant is chosen
(iOS documentation).




iOS




Support
12.0+



Usage #
iOS->Flutter Example #

// "flutter" is a resource in Assets.xcassets.
final Image xcassetImage = Image(
image: IosPlatformImages.load('flutter'),
semanticLabel: 'Flutter logo',
);
copied to clipboard
IosPlatformImages.load works similarly to UIImage(named:).
Flutter->iOS Example #
import ios_platform_images

func makeImage() -> UIImageView {
let image = UIImage.flutterImageWithName("assets/foo.png")
return UIImageView(image: image)
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.