apple_intelligence 0.1.0 copy "apple_intelligence: ^0.1.0" to clipboard
apple_intelligence: ^0.1.0 copied to clipboard

Generate images on device with Apple Intelligence, streamed as they are made, plus the system Image Playground sheet. iOS and macOS.

0.1.0 #

Initial release: Apple Intelligence image generation for Flutter.

  • ImageCreator.generate produces images on device with no UI, delivered as a Stream so the first can be shown while the rest are still being made. Cancelling the subscription cancels the work on the device.
  • ImagePlaygroundSheet.present shows Apple's own generation UI and returns the file it wrote, or null if the user cancelled.
  • ImageCreator.availability reports the sheet and streaming separately, because the sheet is iOS 18.1 and streaming is 18.4 — a device can offer one and not the other.
  • ImageConcept.text names a subject; ImageConcept.extractedFrom asks the system to find the subjects in a passage.
  • Errors arrive as a typed hierarchy — OsTooOldException, GenerationUnavailableException, GenerationRefusedException with a specific reason — never as a bare PlatformException.

Verified against real Apple Intelligence hardware: two PNGs of about 4 MB, the first at 6.8s and the second at 10.3s.

Not included: Writing Tools and Genmoji. Both are planned; Writing Tools attaches to a native text view while Flutter renders its own text, so it needs a design decision rather than a wrapper.

0
likes
0
points
0
downloads

Documentation

Documentation

Publisher

verified publisherjumyn.com

Weekly Downloads

Generate images on device with Apple Intelligence, streamed as they are made, plus the system Image Playground sheet. iOS and macOS.

Repository (GitHub)
View/report issues

Topics

#apple-intelligence #image-generation #on-device-ai #ios #macos

License

unknown (license)

Dependencies

flutter

More

Packages that depend on apple_intelligence

Packages that implement apple_intelligence