From 92f63fde415d0d439c799d345b2500cea81821f9 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 20 Nov 2023 19:13:10 +0200 Subject: Added proper README --- lib/login.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/login.dart b/lib/login.dart index cae97a3..7a4b0c8 100644 --- a/lib/login.dart +++ b/lib/login.dart @@ -7,30 +7,30 @@ class LoginPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: Text('Login')), + appBar: AppBar(title: const Text('Login')), body: Padding( - padding: EdgeInsets.all(16.0), + padding: const EdgeInsets.all(16.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ TextField( controller: emailController, keyboardType: TextInputType.emailAddress, - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Email', border: OutlineInputBorder(), ), ), - SizedBox(height: 12.0), + const SizedBox(height: 12.0), TextField( controller: passwordController, obscureText: true, - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Password', border: OutlineInputBorder(), ), ), - SizedBox(height: 20.0), + const SizedBox(height: 20.0), ElevatedButton( onPressed: () { // Perform the login action here @@ -38,7 +38,7 @@ class LoginPage extends StatelessWidget { print('Email: ${emailController.text.trim()}'); print('Password: ${passwordController.text.trim()}'); }, - child: Text('Login'), + child: const Text('Login'), ), ], ), -- cgit v1.2.3