Documentation
  • Overview
  • Usage Guidelines
  • iOS SDK Integration Guide
  • Android SDK Integration Guide
  • Web SDK Integration Guide
    • Example Web SDK Integration
  • Golang SDK Integration Guide
  • React Native SDK Integration Guide
  • Flutter SDK Integration Guide
  • WordPress Plugin Integration Guide
  • Discord Bot Integration Guide
  • FAQ
  • Support
  • Once you hit scale - Fees
  • Adjust language & default country code
  • SMS Terms and Conditions
  • Privacy-Policy
Powered by GitBook
On this page
  • IMPORTANT
  • Overview
  • Requirements
  • Steps
  • 1. Installation
  • 2. Credentials Access
  • 3. How To Use/Configuration
  • Sample Code Here

Was this helpful?

Flutter SDK Integration Guide

PreviousReact Native SDK Integration GuideNextWordPress Plugin Integration Guide

Last updated 2 years ago

Was this helpful?

IMPORTANT

The Flutter SDK is currently being worked on and an updated version will be released shortly. We strongly recommend waiting until the updated version is completed before integration. Please email developers@human-id.org with any questions you may have.

Overview

Requirements

  • Dart

  • Flutter SDK

Please update to the latest stable SDK!

Steps

1. Installation

pubspec.yaml

dependencies:
  humanid_flutter_sdk: ^0.0.4

2. Credentials Access

3. How To Use/Configuration

Configure HumanId SDK inside a press function

import 'package:humanid_flutter_sdk/ui/human_id_sdk.dart';
import 'package:humanid_flutter_sdk/utils/authorization_arguments.dart';
import 'package:humanid_flutter_sdk/utils/routes.dart';
  
configureHumanIdSDK(
                context: context,
                arguments: AuthorizationArguments(
                  appName: 'YOUR_APP_NAME',
                  iconUrl: 'YOUR_APP_ICON',
                  clientId: 'YOUR_CLIENT_ID',
                  clientSecret: 'YOUR_CLIENT_SECRET',
                ),
                onSuccessLogin: (accessToken) {
                  setState(() {
                    token = accessToken;
                  });
                }), 

Get the appId and appSecret through the .

Sample Code

App Registration Form
Here
Requirements
Installation
Credentials Access
How To Use/Configuration
Sample Code
Installation
Credentials Access
How To Use/Configuration