> For the complete documentation index, see [llms.txt](https://myty.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myty.gitbook.io/products/sdk/flutter-example/use-arkit-plugin.md).

# Use ARKit Plugin

### Flutter ARKit Plugin

In this example, we used plugin below to use features of AR Kit.

{% embed url="<https://pub.dev/packages/arkit_plugin>" %}

### ARKitSceneView

You can use <mark style="color:purple;">`ARKitSceneView`</mark> from ARKit plugin. In this example, we used <mark style="color:purple;">`Stack`</mark> to make <mark style="color:purple;">`ARKitSceneView`</mark> and <mark style="color:purple;">`UnityWidget`</mark> can be aligned to show AR mode of MYTY Avatar. You can add callback function to <mark style="color:purple;">`onARKitViewCreated`</mark> to register your update function.

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/flutter_2d_arkit/lib/components/myty_avatar_widget.dart#L28>" %}

### Handle Face Tracking results

Face detection result of AR Kit is in a format of <mark style="color:purple;">`ARKitFaceAnchor`</mark> in AR Kit plugin. You can refer to the code below, to see how we translated AR Kit result into the format of data that can be used for [MYTY SDK Interface](/products/sdk/myty-sdk-interface.md).

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/flutter_2d_arkit/lib/components/myty_avatar_widget.dart#L53>" %}
