ar_tryon_view 0.0.1
ar_tryon_view: ^0.0.1 copied to clipboard
Flutter plugin that embeds a native Android camera preview using PlatformView + CameraX and supports transparent PNG overlay effects (e.g., glasses, masks, accessories) for virtual try-on experiences [...]
AR Try-On View (Flutter) #
A lightweight Flutter plugin that embeds a native Android camera preview using PlatformView + CameraX and supports transparent PNG overlay effects (e.g., glasses, masks, accessories). This is a great starting point for building virtual try-on experiences for e-commerce apps.
Features #
- Embedded native Android camera preview using PlatformView + CameraX.
- Overlay transparent PNG effects on top of the camera feed.
- Dart controller API: start/stop, setEffect, setEffectBytes, setEffectAsset, clearEffect.
- Uses PreviewView ImplementationMode.COMPATIBLE for proper alpha blending (TextureView).
- Works well with permission_handler for camera permission.
Platform Support #
- Android: ✅ Supported
- iOS: ⏳ Not implemented yet (planned)
Installation #
Add to your pubspec.yaml:
dependencies:
ar_tryon_view: ^1.0.0