face_overlay_kit 0.0.1
face_overlay_kit: ^0.0.1 copied to clipboard
Reusable, SDK-agnostic face alignment overlay UI for Flutter. Feed it face position data from any detector and get a smooth, animated guided overlay in return.
import 'package:flutter/material.dart';
import 'live_face_overlay_page.dart';
import 'simulated_demo_page.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'face_overlay_kit example',
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('face_overlay_kit')),
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
FilledButton(
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const LiveFaceOverlayPage()),
),
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 32, vertical: 12),
child: Text('Live Camera Demo (real face)'),
),
),
const SizedBox(height: 16),
OutlinedButton(
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const SimulatedDemoPage()),
),
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 32, vertical: 12),
child: Text('Simulated Demo (canned data)'),
),
),
],
),
),
);
}
}