guardlinesdk 0.1.1 copy "guardlinesdk: ^0.1.1" to clipboard
guardlinesdk: ^0.1.1 copied to clipboard

Project integration Guardline SDK and API.

TODO: Guardline SDK integration for Guardline API

Features #

TODO: Project uses blinkid_flutter, image_picker and bluecore-guardline-api.

Getting started #

TODO: Create flutter app. flutter create myapp cd myapp

add package guardlinesdk: ^0.1.0 on pubspec.yaml flutter run

Usage #

TODO: Open folder /example has two example, a "main sample simple.dart" and "main sample simple.dart". For test this files rename to main.dart.

For example using main "sample simple.dart"

chane field [YOUR TOKEN HERE] to your token captured in the guardline portal The method onResult return Session ID used for you catch informations about ocr

import 'package:flutter/material.dart';
import 'package:guardlinesdk/guardlinepage.dart';

void main() {
  // Ensure DemoApp is defined in ../clientsdk/DemoApp.dart and imported correctly
  const token =
      '[YOUR TOKEN HERE]';

  runApp(
    GuardlinePage(
      token, // Replace with your actual token
      primaryColor: Colors.blueAccent,
      onResult: (String text) {
        print(text);
      },
    ),
  );
}

In the second example you need use GuardlineWidget inner you page as widget combination with outers components:

              return GuardlineWidget(
                '[YOUR TOKEN HERE]', // Replace with your actual token
                primaryColor: Colors.orangeAccent,
                onResult: (text) {
                  if (kDebugMode) {
                    print('text');
                  }
                },
              )

After return session you can call Api and return status of request:

GuardlineApi guardlineApi = GuardlineApi(widget.token)
List<String> types = await guardlineApi.verify(session)

if(types.length >= 1){
    final respType1 = await guardlineApi. verifyWithType(session, types[0])
}

if(types.length >= 2){
    final respType2 = await guardlineApi. verifyWithType(session, types[1])
}

Additional information #

TODO: Choose option in parameters on main.

0
likes
0
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

Project integration Guardline SDK and API.

License

unknown (license)

Dependencies

blinkid_flutter, bmprogresshud, device_info_plus, flutter, http, http_parser, image, image_picker, iproov_flutter, network_info_plus, path, path_provider, uuid

More

Packages that depend on guardlinesdk