pena_flutter

Last updated:

0 purchases

pena_flutter Image
pena_flutter Images
Add to Cart

Description:

pena flutter

Pena 💙 Flutter #

PrivyID's Official Client Integration Library for Flutter.

Requirement #



Platform
Requirement




Android
SDK 30+


IOS
14+



Installation #
flutter pub add pena_flutter
copied to clipboard
Android Platform #
You should however make sure to set the correct minSdkVersion in android/app/build.gradle if it was previously lower than 30:
android {
defaultConfig {
minSdkVersion 30
}
}
copied to clipboard
Usage #
import 'package:pena_flutter/pena_flutter.dart';

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return Pena(
url: 'http://sign.document.com/doc/xxxxx',
lang: 'en',
signature: const Placement(x: 50, y: 100, page: 1),
onAfterAction: (payload) {
if (payload.action == 'sign') {
print(payload.data);
}
},
);
}
}
copied to clipboard
Options #
Props #



Name
Type
Default
Description




url
String
-
(Required) Document's url


lang
String
en
Set language, valid value is en or id


visibility
bool
true
Set signature visibility


privyId
String
-
Set recipient's privyId


signature
Placement
-
Set signature placement (Deprecated) use API to set placement when upload the document


├ x
num
-
X Coordinate


├ y
num
-
Y Coordinate


├ page
num
-
Target page


â”” fixed
bool
false
Disabled signature for moving


debug
bool
false
Enable debug mode


needScrollTo
num | String
-
Force user to scroll to target page before doing an action (sign,review,etc). Valid value is a number, or set last to target the last page


onAfterAction
Function
-
After action hook



License #
This project is licensed under the MIT License - see the LICENSE file for details

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.