41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
Dart
import 'face_detection_camera.dart';
|
|
import 'face_detection_image.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('Smile To Face App'),
|
|
),
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
RaisedButton(
|
|
child: Text('Add Smile to Face from Image'),
|
|
onPressed: () {
|
|
Navigator.of(context).push(
|
|
MaterialPageRoute(
|
|
builder: (context) => FaceDetectionFromImage(),
|
|
),
|
|
);
|
|
}),
|
|
RaisedButton(
|
|
child: Text('Add Smile to Face from Live Camera'),
|
|
onPressed: () {
|
|
Navigator.of(context).push(
|
|
MaterialPageRoute(
|
|
builder: (context) => FaceDetectionFromLiveCamera(),
|
|
),
|
|
);
|
|
}),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|