# Flutter SDK / Plugin

### Installation

First, add `facekikyc: ^1.0.0` as a \[dependency in your pubspec.yaml file]

```
https://pub.dev/packages/facekikyc
```

#### iOS Setup

Add the following keys to your *Info.plist* file, located in `<project root>/ios/Runner/Info.plist`:

* `NSPhotoLibraryUsageDescription` - describe why your app needs permission for the photo library. This is called *Privacy - Photo Library Usage Description* in the visual editor.
  * This permission will not be requested if you always pass `false` for `requestFullMetadata`, but App Store policy requires including the plist entry.
* `NSCameraUsageDescription` - describe why your app needs access to the camera. This is called *Privacy - Camera Usage Description* in the visual editor.

#### Android Setup

Add this permission to your AndroidManifest.xml File

* `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>`
* `<uses-permission android:name="android.permission.INTERNET" />`

### Usage:

```dart

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
     
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: facekikyc(
        clientId: "2b8tr0234c8aq878vhdap44l63",
        clientSecret: "1caci0co3hs8rlc18tj7vbqadrb44nhtu7ipelk0nr4lftf0h5l6",
        onSuccess: (po) {
          // action to be done
          print("success response is $po");
        },
        onError: (po) {
// action to be done
          print("error response is $po");
        },
      ),
    );
  }
```
