diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-11-20 19:13:10 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-11-20 19:13:10 +0200 |
| commit | 92f63fde415d0d439c799d345b2500cea81821f9 (patch) | |
| tree | e44d3fa42d01d8f6278794fdd994b76b4242b900 /lib | |
| parent | 8d6d7a1da19e691ce0b643b4136d946931a93b46 (diff) | |
| download | carpool-92f63fde415d0d439c799d345b2500cea81821f9.tar.xz carpool-92f63fde415d0d439c799d345b2500cea81821f9.zip | |
Added proper README
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/login.dart | 14 |
1 files changed, 7 insertions, 7 deletions
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: <Widget>[ 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'), ), ], ), |
