Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.