add structure
This commit is contained in:
40
lib/face/home.dart
Normal file
40
lib/face/home.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
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(),
|
||||
),
|
||||
);
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user