ekyc2022 0.0.1-dev.2
ekyc2022: ^0.0.1-dev.2 copied to clipboard
A new Flutter project.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:ekyc2022/ekyc2022.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Column(
children: [
Container(
child: RaisedButton(
child: Text("Start Stream"),
onPressed: () {
Ekyc2022.startStream();
},
),
),
Container(
child: RaisedButton(
child: Text("Detect Face"),
onPressed: () {
Ekyc2022.detectFace();
setState(() {});
},
),
),
Container(
child: RaisedButton(
child: Text("Detect Front"),
onPressed: () {
Ekyc2022.detectFrontcard();
setState(() {});
},
),
),
Container(
child: RaisedButton(
child: Text("Detect Back"),
onPressed: () {
Ekyc2022.detectBackcard();
setState(() {});
},
),
),
],
),
),
);
}
}