This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/p-society/gCSB
- Loading branch information
Showing
20 changed files
with
794 additions
and
202 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "admin", | ||
"cwd": "apps\\admin", | ||
"request": "launch", | ||
"type": "dart" | ||
}, | ||
{ | ||
"name": "admin (profile mode)", | ||
"cwd": "apps\\admin", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "admin (release mode)", | ||
"cwd": "apps\\admin", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
}, | ||
{ | ||
"name": "users", | ||
"cwd": "apps\\users", | ||
"request": "launch", | ||
"type": "dart" | ||
}, | ||
{ | ||
"name": "users (profile mode)", | ||
"cwd": "apps\\users", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "users (release mode)", | ||
"cwd": "apps\\users", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
import 'package:admin/textfield_login.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
class LoginPageAdmin extends StatelessWidget { | ||
const LoginPageAdmin({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
home: Scaffold( | ||
body: Expanded( | ||
child: Container( | ||
decoration: const BoxDecoration( | ||
gradient: LinearGradient( | ||
//aplying gradient | ||
begin: Alignment.topCenter, | ||
end: Alignment.bottomCenter, | ||
colors: [ | ||
Color(0xFF111114), | ||
Color(0xFF161A3A), | ||
Color(0xFF171D45), | ||
], | ||
), | ||
), | ||
height: double.infinity, | ||
child: Padding( | ||
padding: const EdgeInsets.fromLTRB(40.0, 0, 40, 0.0), | ||
child: SingleChildScrollView( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
const SizedBox( | ||
height: 70, | ||
), | ||
const Text( | ||
'Create your Account', | ||
style: TextStyle( | ||
color: Color(0xFFE0DADD), | ||
fontSize: 28, | ||
fontFamily: 'Open Sans', | ||
fontWeight: FontWeight.w800, | ||
height: 0, | ||
), | ||
), | ||
const Text( | ||
'Fill in the details to create your account', | ||
style: TextStyle( | ||
color: Color(0xFFBAAFBB), | ||
fontSize: 16, | ||
fontFamily: 'Poppins', | ||
fontWeight: FontWeight.w500, | ||
height: 0, | ||
), | ||
), | ||
const SizedBox( | ||
height: 18, | ||
), | ||
AspectRatio( | ||
aspectRatio: 16 / 9, | ||
child: Image( | ||
image: AssetImage( | ||
'assets/images/sports_illustration_gCSB.png')), | ||
), | ||
const SizedBox(height: 20), | ||
const TextfieldLogin( | ||
aboveText: 'Name', | ||
hintText: 'Enter your Name'), //TextField for name | ||
const TextfieldLogin( | ||
aboveText: 'E-mail', | ||
hintText: 'Enter your E-mail'), //TextField for email | ||
const TextfieldLogin( | ||
aboveText: 'Phone Number', | ||
hintText: | ||
'Enter your phone number'), //TextField for phone number | ||
const TextfieldLogin( | ||
aboveText: 'Password', | ||
hintText: | ||
'Enter your password'), //TextField for password | ||
const SizedBox( | ||
height: 20, | ||
), | ||
SizedBox( | ||
width: 320, | ||
child: TextButton( | ||
onPressed: () { | ||
// _onButtonPressed(); | ||
}, | ||
style: TextButton.styleFrom( | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular( | ||
10.0), // Adjust the radius as needed | ||
), | ||
backgroundColor: | ||
const Color.fromRGBO(225, 25, 109, 1)), | ||
child: const Text( | ||
'Register', | ||
style: TextStyle(color: Colors.white), | ||
), | ||
), | ||
), | ||
const SizedBox( | ||
height: 15, | ||
), | ||
Center( | ||
child: Row( | ||
children: [ | ||
const Text( | ||
'Already have an account? ', | ||
style: TextStyle( | ||
color: Colors.white, | ||
fontSize: 15, | ||
fontFamily: 'Open Sans', | ||
fontWeight: FontWeight.w500, | ||
height: 0, | ||
), | ||
), | ||
GestureDetector( | ||
//making signup text clickable | ||
onTap: () { | ||
print('signup clicked'); | ||
}, | ||
child: const Text( | ||
'Sign Up', | ||
style: TextStyle( | ||
color: Color(0xFFC01A60), | ||
fontSize: 15, | ||
fontFamily: 'Open Sans', | ||
fontWeight: FontWeight.w500, | ||
height: 0, | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.