llamadart_stable_diffusion_flutter 0.0.1
llamadart_stable_diffusion_flutter: ^0.0.1 copied to clipboard
Flutter Apple SwiftPM runtime companion package for llamadart stable-diffusion.cpp image generation.
llamadart_stable_diffusion_flutter #
Flutter Apple Swift Package Manager companion package for
llamadart image generation with
stable-diffusion.cpp.
Add this package to a Flutter iOS/macOS app that uses ImageGenerationEngine
to link the prebuilt stable-diffusion.cpp Apple XCFramework through SwiftPM.
Adding it opts iOS and macOS builds into that runtime, about 37 MB per Apple
target. Without it, the core package bundles the runtime through its
native-assets hook, whose iOS framework App Store Connect rejects: Flutter
writes MinimumOSVersion 13.0 into it, while the library requires iOS 16.4.
The hook reports this as an Xcode build warning, which Xcode and xcodebuild
show but plain flutter build and flutter run output does not.
Pair companion 0.0.1 with core 0.10.0 or newer; older cores, including
0.9.x, ignore it.
dependencies:
llamadart: ^0.10.0
llamadart_stable_diffusion_flutter: ^0.0.1
Adding the package selects the stable_diffusion runtime for Flutter iOS and
macOS builds; llamadart_native_runtimes still decides the other platforms.
This package has no runtime Dart API of its own. Import package:llamadart
normally from the core package and use ImageGenerationEngine there.
The Apple SwiftPM manifest pins leehack/stable-diffusion-native@v0.2.0.
Source for this package lives in
packages/llamadart_stable_diffusion_flutter in the
llamadart repository.