AiutaTryOnFeature constructor
- required AiutaTryOnLoadingPageFeature loadingPage,
- required AiutaTryOnInputImageValidationFeature inputImageValidation,
- required AiutaTryOnCartFeature cart,
- AiutaTryOnFitDisclaimerFeature? fitDisclaimer,
- AiutaTryOnFeedbackFeature? feedback,
- AiutaTryOnGenerationsHistoryFeature? generationsHistory,
- AiutaTryOnWithOtherPhotoFeature? otherPhoto,
- required AiutaTryOnToggles toggles,
- required AiutaTryOnIcons icons,
- required AiutaTryOnStrings strings,
- required AiutaTryOnStyles styles,
Creates an AiutaTryOnFeature with the required loadingPage
to configure
the the state when the user is waiting for the try-on to be generated,
inputImageValidation
to check if the input image is valid, and cart
to
handle thw user intentions to add the product used for the try-on to the cart.
Optional features include fitDisclaimer
for indicate that the result of the
try-on may differ from the real life, feedback
to allow the user to provide
feedback on the try-on result, generationsHistory
to keep track of the
previous generations, and otherPhoto
to allow the user to use a different
photo for the try-on with the same product after the seeing the result.
The toggles
, icons
, strings
, and styles
parameters are required to
configure the feature's appearance and behavior.
Implementation
AiutaTryOnFeature({
required this.loadingPage,
required this.inputImageValidation,
required this.cart,
this.fitDisclaimer,
this.feedback,
this.generationsHistory,
this.otherPhoto,
required this.toggles,
required this.icons,
required this.strings,
required this.styles,
});