sprintfacedetection 0.1.0
sprintfacedetection: ^0.1.0 copied to clipboard
Native face liveness detection and attendance photo capture for Android (ML Kit) and iOS (Apple Vision). Standalone package with zero location or mapping dependencies.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'screens/face_detection_home_screen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(const SprintfacedetectionExampleApp());
}
class SprintfacedetectionExampleApp extends StatelessWidget {
const SprintfacedetectionExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'SprintFace Detection',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xFF6750A4),
brightness: Brightness.light,
),
useMaterial3: true,
),
darkTheme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xFFD0BCFF),
brightness: Brightness.dark,
),
useMaterial3: true,
),
themeMode: ThemeMode.system,
home: const FaceDetectionHomeScreen(),
);
}
}