decart_vton_flutter 1.0.1
decart_vton_flutter: ^1.0.1 copied to clipboard
Realtime Decart virtual try-on for Flutter with live camera streaming, garment images, prompts, camera switching, and Android/iOS platform views.
Changelog #
1.0.1 #
Documentation and repository-maintenance release.
- Adds a clickable Google Drive video demo and updated package screenshot.
- Adds a public architecture overview and refreshes the specification and maintainer documentation for the current native integrations.
- Corrects API documentation for errors, connectivity results, cancelled operations, and reference-image requirements.
- Clarifies the example application's Android configuration and regeneration tooling.
- Removes the obsolete local macOS command-bridge script.
1.0.0 #
Stable release consolidating the existing realtime virtual try-on integration.
- Realtime virtual try-on for Android and iOS, including VTON 3.5 at 1280x720.
DecartVton, native video views, lifecycle handling, and production client-token authentication.- Typed connection state, events, and normalized
VtonErrorCodefailures. - Reuses the client created by
initialize()for the first connection, avoiding a duplicate token request while retaining refresh-on-reconnect behavior. - Switches front and back cameras on the existing published track, preserving the Decart session ID, outfit state, and client token.
- Adds file-backed garment images through
referenceImagePath, avoiding large Dart heap allocations and platform-channel byte copies for picker files.
0.1.0 #
Initial development release.
- Realtime virtual try-on wrapping
DecartAI/decart-android0.7.10 andDecartAI/decart-iosv0.6.10, including VTON 3.5 at 1280x720. DecartVtoncontroller:initialize,connect,setOutfit,switchCamera,checkConnectivity,disconnect,dispose.VtonRemoteViewandVtonLocalPreviewplatform views, with native rebinding across automatic reconnects.- Outfit updates by prompt, by garment reference image, or both — with the whole-state-replace semantics of the underlying API made explicit rather than hidden.
- Android replicates the iOS SDK's
hasReferenceImagemessage routing, so an outfit update means the same thing on both platforms. VtonLifecycleObserverfor background/foreground session handling.- Short-lived production client-token provider API; only
ek_client tokens are accepted there, and tokens are refreshed before a new or restored session. - Explicit
initializeForDevelopment(apiKey: ...)escape hatch for local prototypes; it acceptsdct_test keys in debug builds and is disabled in profile and release builds. - Serialized lifecycle and outfit operations to prevent overlapping native connects, disconnects and updates.
- Android garment-image encoding runs off the main thread.
- Removes the unused unshaded Android WebRTC engine and narrows consumer R8 rules to reduce release size.
- Requires Flutter 3.44 / Dart 3.12 and migrates the plugin to AGP 9 built-in Kotlin support.
- Single
DecartVtonExceptiontype with a normalisedVtonErrorCode; noPlatformExceptionescapes the package.
Security, privacy, setup and supported-platform details are in README.md.
