-
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 pull request #26 from p-society/dev/app
created login page for player
- Loading branch information
Showing
3 changed files
with
193 additions
and
55 deletions.
There are no files selected for viewing
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
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,141 @@ | ||
import 'package:admin/textfield_login.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class LoginPagePlayer extends StatelessWidget { | ||
const LoginPagePlayer({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
home: Scaffold( | ||
body: Padding( | ||
padding: const EdgeInsets.all(0.0), | ||
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, | ||
), | ||
const Padding( | ||
padding: EdgeInsets.fromLTRB(50, 8, 50, 8), | ||
child: Image( | ||
image: AssetImage( | ||
'assets/images/sports_illustration_gCSB.png')), //sports image | ||
), | ||
const SizedBox(height: 20), | ||
const TextfieldLogin( | ||
aboveText: 'E-mail', | ||
hintText: 'Enter your E-mail'), //TextField for email | ||
const TextfieldLogin( | ||
aboveText: 'Password', | ||
hintText: | ||
'Enter your password'), //TextField for password | ||
const SizedBox( | ||
height: 20, | ||
), | ||
SizedBox( | ||
width: 320, | ||
child: TextButton( | ||
//Register button | ||
onPressed: () { | ||
// _onButtonPressed(); | ||
print('Register button clicked'); | ||
}, | ||
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: 20, | ||
), | ||
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 clickabe | ||
onTap: () { | ||
print('signup clicked'); | ||
}, | ||
child: const Text( | ||
'Sign Up', | ||
style: TextStyle( | ||
color: Color(0xFFC01A60), | ||
fontSize: 15, | ||
fontFamily: 'Open Sans', | ||
fontWeight: FontWeight.w500, | ||
height: 0, | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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