yoti_flutter 0.0.8 copy "yoti_flutter: ^0.0.8" to clipboard
yoti_flutter: ^0.0.8 copied to clipboard

Flutter plugin to dridge to Yoti native SDKS. Yoti is an identity checking platform that allows organisations to verify who people are, online and in person.

example/lib/main.dart

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

import 'package:yoti_flutter/yoti_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _yotiFlutterPlugin = YotiFlutter();

  @override
  void initState() {
    super.initState();
  }

  Future<void> startYoti() async {
    try {
      var response = await _yotiFlutterPlugin.startYoti(
          "dace7fb9-58b6-4bc9-9c86-041c0faf5a4d",
          "d061b35b-b090-46c5-b395-56d487f2465e");

      print(response);
    } catch (error) {
      print('Platform err: ${error.toString()}');
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Yoti Flutter example app'),
        ),
        body: Center(
          child: TextButton(
              onPressed: () {
                startYoti();
              },
              child: const Text('Start Yoti Session')),
        ),
      ),
    );
  }
}
2
likes
160
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin to dridge to Yoti native SDKS. Yoti is an identity checking platform that allows organisations to verify who people are, online and in person.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on yoti_flutter