Skip to content

Flutter

This is a Flutter-specific Face SDK installation guide. Before proceeding further, make sure you've read the Installation page and have selected the Core type to install.

Requirements

  • The latest stable version of Flutter
  • For iOS, the minimum target is iOS 11.0
  • For Android, the minimum Android API level is 21

Installation

The Face SDK is available on pub.dev.

1. Add flutter_face_api as a dependency in your pubspec.yaml file:

dependencies:
  flutter_face_api: ^6.1.1
  flutter_face_core_basic: ^6.1.0
dependencies:
  flutter_face_api: ^6.1.1
  flutter_face_core_match: ^6.1.0

Alternatively, run this command:

flutter pub add flutter_face_api
flutter pub add flutter_face_core_basic
flutter pub add flutter_face_api
flutter pub add flutter_face_core_match

2. Install the packages using the following command:

flutter pub get

3. Add the following configuration into android section of your android/app/build.gradle:

    aaptOptions {
        noCompress "Regula/faceSdkResource.dat"
    }

Import the Face SDK

You should now be able to import face_api:

import 'package:flutter_face_api/face_api.dart';

Info

You can always use our demo application on GitHub.

Next Step