persona_flutter 3.0.1-beta.0 persona_flutter: ^3.0.1-beta.0 copied to clipboard
Persona Inquiry for Flutter. Integrates the native v2 SDKs for iOS and Android.
Persona Inquiry for Flutter #
Native implementation of the Persona Inquiry flow for Flutter.
This plugin integrates the native v2 SDKs:
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>