From 92f63fde415d0d439c799d345b2500cea81821f9 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 20 Nov 2023 19:13:10 +0200 Subject: Added proper README --- README.md | 16 ++-------------- lib/login.dart | 14 +++++++------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 70f9602..d70cc95 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,4 @@ -# carpool +# Carpool +Rideshare application designed to facilitate rideshare service to customers. carpool can be used by students to share rides to or from AinShams campus -A new Flutter project. -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. 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