import 'package:flutter/material.
dart';
import '[Link]';
import '[Link]';
import '[Link]'; // Import the new screen
class HomeScreen extends StatefulWidget {
const HomeScreen({[Link]});
@override
State<HomeScreen> createState() => _HomePageState();
}
class _HomePageState extends State<HomeScreen> {
@override
Widget build(BuildContext context) {
double screenWidth = [Link](context).[Link];
double screenHeight = [Link](context).[Link];
return Scaffold(
body: Column(
mainAxisAlignment: [Link],
children: [
Container(
margin: const [Link](top: 100),
child: [Link](
"images/[Link]",
width: screenWidth - 40,
height: screenWidth - 40,
),
),
Container(
margin: const [Link](bottom: 50),
child: Column(
children: [
ElevatedButton(
onPressed: () {
[Link](
context,
MaterialPageRoute(
builder: (context) => const RegistrationScreen(),
),
);
},
style: [Link](
minimumSize: Size(screenWidth - 30, 50),
),
child: const Text("Register"),
),
Container(height: 20),
ElevatedButton(
onPressed: () {
[Link](
context,
MaterialPageRoute(
builder: (context) => const RecognitionScreen(),
),
);
},
style: [Link](
minimumSize: Size(screenWidth - 30, 50),
),
child: const Text("Recognize"),
),
Container(height: 20),
ElevatedButton(
onPressed: () {
[Link](
context,
MaterialPageRoute(
builder: (context) => const HistoryScreen(),
),
);
},
style: [Link](
minimumSize: Size(screenWidth - 30, 50),
),
child: const Text("View History"), // New Button
),
],
),
),
],
),
);
}
}