This package contains the Virtual Try-On Solution for Apparel and Fashion Businesses SDK for Flutter as a plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS that uses Aiuta Digital Try On API.
Add the following keys to your Info.plist
file, located
in <project root>/ios/Runner/Info.plist
:
NSCameraUsageDescription
: Required Please describe why your app needs
access to the camera so that Aiuta can request permission
to use the camera from the user. This is called Privacy - Photo Library Usage
Description in the visual editor.NSPhotoLibraryAddUsageDescription
: Optional Please describe why your app
needs permission for the photo library so that Aiuta can request
permission to save the generated image to the Photo Gallery from the user.
This is called Privacy - Camera Usage Description in the visual editor.No configuration required - the plugin should work out of the box.
Compilation support is provided for iOS 12.0 and later. However, the SDK requires iOS 13.0 or later to work. If the device is running an older version of iOS, the native SDK will not be available.
Please check the availability of the SDK by calling the isAvailable
getter on
the configured Aiuta
object before providing the try-on functionality to the
user.
Aiuta requires minSdkVersion = 23
or later.
Please see the AiutaConfiguration and its properties to observe the available configuration.
Call the startAiutaFlow(product: AiutaProduct(...))
method on the
configured Aiuta
object to provide virtual try-on functionality to the user.
AiutaProduct represents the information about a SKU in the Aiuta platform.
Call the startAiutaHistoryFlow()
method on the configured Aiuta
object to
provide the user with a history of their virtual try-on generations.
final aiuta = Aiuta(configuration: AiutaConfiguration(...));
if (await aiuta.isAvailable) {
aiuta.startTryonFlow(product: AiutaProduct(...));
}