instafido 0.0.5 copy "instafido: ^0.0.5" to clipboard
instafido: ^0.0.5 copied to clipboard

Its a verfiction plugin.

Features #

Verify the documents & liveliness

Usage #

To use this plugin, add instafido_sdk as a dependency in your pubspec.yaml file.

Examples Here are small examples that show you how to use the API.


import 'package:flutter/material.dart';
import 'package:instafido/instafido.dart';

class SampleScreen extends StatefulWidget {
  const SampleScreen({Key? key}) : super(key: key);

  @override
  State<SampleScreen> createState() => _SampleScreenState();
}
class _SampleScreenState extends State<SampleScreen> {
  @override
  Widget build(BuildContext context) {
   
    return Scaffold(
      appBar: AppBar(
        title:const Text("sample app screen"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            //CustomButton(child:const Text('instafido'),onPressed: (){},),

            ElevatedButton(
              onPressed: () async {
                final response= await InstafidoSdk.start(token:tokenVal, context: context);
              },
              child: const Text(
                'go to instafido',
              ),

            ),
          ],
        ),
      ),
    );
  }
}