Giter VIP home page Giter VIP logo

privy-pena-flutter's Introduction

Pena ๐Ÿ’™ Flutter

PrivyID's Official Client Integration Library for Flutter.

Requirement

Platform Requirement
Android SDK 30+
IOS 14+

Installation

flutter pub add pena_flutter

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
    }
}

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);
        }
      },
    );
  }
}

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

privy-pena-flutter's People

Contributors

adenvt avatar renovate[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.