onfido_sdk 2.2.0 copy "onfido_sdk: ^2.2.0" to clipboard
onfido_sdk: ^2.2.0 copied to clipboard

This library aims to help flutter developers integrating with the Onfido SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:onfido_sdk_example/checks.dart';
import 'package:onfido_sdk_example/workflow.dart';

void main() async {
  await dotenv.load();

  runApp(const MaterialApp(
    title: 'Onfido',
    home: MyApp(),
  ));
}

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Onfido Example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            MaterialButton(
              child: const Text("Onfido Checks Sample"),
              onPressed: () => {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const OnfidoChecksSample()),
                )
              },
            ),
            MaterialButton(
              child: const Text("Onfido Workflow Sample"),
              onPressed: () => {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const OnfidoWorkflowSample()),
                )
              },
            ),
          ],
        ),
      ),
    );
  }
}
15
likes
0
pub points
91%
popularity

Publisher

verified publisheronfido.com

This library aims to help flutter developers integrating with the Onfido SDK.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on onfido_sdk