mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00

Updates the repo for 3.24 per https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md Also fixes some packages to list 3.22 as their minimum version, which hadn't already been done only because we were not previously doing the N-1 test for 3.19 as intended, so didn't notice cases where a package claimed 3.19 support but required a 3.22+ dependency.
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',
);
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)
}