Persona Inquiry for Flutter

pub points popularity likes donate

Native implementation of the Persona Inquiry flow for Flutter.

This plugin integrates the native v1 SDKs:

For v2 SDKs integration, check the prerelease version

Feel free to leave any feedback here.

Installation

Add persona_flutter as a dependency in your pubspec.yaml file.

iOS

You need to add the following key to your ios/Runner/Info.plist:

<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library.</string>

Requirements

  • iOS 11.0 or later is required.
  • Cocoapods 1.9.3 has a bug that prevents builds from selecting the correct architecture. See more details here. Please downgrade to 1.8.x or upgrade to 1.10.x

Android

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Theming

Using the styles.xml of your app, you can set colors, buttons and more to customize the Persona flow to your own style. Just extend the base Persona style Base.Persona.Inquiry.Theme and name it Persona.Inquiry.Theme.

<style name="Persona.Inquiry.Theme" parent="@style/Base.Persona.Inquiry.Theme">
    <item name="colorPrimary">#22CB8E</item>
    <item name="colorAccent">#22CB8E</item>
    <item name="colorPrimaryDark">#167755</item>
</style>

Libraries

persona_flutter