deepar_shoe_try_on_flutter 1.0.2-beta copy "deepar_shoe_try_on_flutter: ^1.0.2-beta" to clipboard
deepar_shoe_try_on_flutter: ^1.0.2-beta copied to clipboard

The official DeepAR Shoe Try-On plugin for Flutter.

DeepAR Shoe Try-On Flutter Plugin #

The official DeepAR plugin for integrating AR Shoe Try-On with Flutter.

Shoe Try-On Gif

Getting Started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  deepar_shoe_try_on_flutter: ^1.0.1-beta

Import it:

import 'package:deepar_shoe_try_on_flutter/deepar_shoe_try_on_flutter.dart';

Add camera permissions to your iOS and/or Android app.

Usage #

Add DeepARShoeTryOnPreview widget to your app.

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: const Text('Flutter Simple Example')),
    body: DeepARShoeTryOnPreview(link: Uri.parse("https://demo.deepar.ai/flutter/shoe/nike-airforce1.deepar")),
  );
}

Android Platform Views #

This plugin uses Platform Views.

You should however make sure to set the correct minSdkVersion in android/app/build.gradle if it was previously lower than 19:

android {
    defaultConfig {
        minSdkVersion 19
    }
}