import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State createState() => _MyHomePageState(); } class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Padding( padding: const EdgeInsets.all(24.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'Login', style: TextStyle( color: Colors.deepPurple, fontSize: 45, fontWeight: FontWeight.bold, ), ), const SizedBox(height: 30), const Text( 'Email Address', style: TextStyle(color: Colors.deepPurple), ), const SizedBox(height: 8), TextField( decoration: const InputDecoration( icon: Icon(Icons.email), iconColor: Colors.deepPurple, labelText: 'Please enter your email address', border: OutlineInputBorder(), ), ), const SizedBox(height: 20), const Text( 'Password', style: TextStyle(color: Colors.deepPurple), ), const SizedBox(height: 8), TextField( obscureText: true, decoration: const InputDecoration( icon: Icon(Icons.lock), iconColor: Colors.deepPurple, labelText: 'Please enter your password', border: OutlineInputBorder(), ), ), const SizedBox(height: 30), ElevatedButton( child: const Text('Login'), onPressed: () { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( content: Text('Logged in Successfully!'), ), ); }, ), ], ), ), ), ); } }