0% found this document useful (0 votes)
10 views2 pages

Home Screen

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Home Screen

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

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
),
],
),
),
],
),
);
}
}

You might also like