myhr_facescan 0.1.0
myhr_facescan: ^0.1.0 copied to clipboard
Enroll face using luxand, verify real people by using active liveness detection
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:myhr_facescan/enroll/index.dart';
import 'package:myhr_facescan/myhr_facescan.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const GetMaterialApp(home: HomePage());
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Test'),
),
body: Column(
children: [
ElevatedButton(
onPressed: () => Get.to(const EnrollPage()),
child: const Text('Enroll'))
],
),
);
}
}
class EnrollPage extends StatelessWidget {
const EnrollPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Enroll Face'),
),
body: const SafeArea(
child: SingleChildScrollView(
child: EnrollFace(
licenseKey: '',
),
)),
);
}
}