summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-20 19:13:10 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-20 19:13:10 +0200
commit92f63fde415d0d439c799d345b2500cea81821f9 (patch)
treee44d3fa42d01d8f6278794fdd994b76b4242b900
parent8d6d7a1da19e691ce0b643b4136d946931a93b46 (diff)
downloadcarpool-92f63fde415d0d439c799d345b2500cea81821f9.tar.xz
carpool-92f63fde415d0d439c799d345b2500cea81821f9.zip
Added proper README
-rw-r--r--README.md16
-rw-r--r--lib/login.dart14
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: <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'),
),
],
),