forked from lohanidamodar/flutter_ui_challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3754390
commit 18d4481
Showing
2 changed files
with
119 additions
and
0 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,117 @@ | ||
import 'package:flutter/foundation.dart'; | ||
/** | ||
* Author: Damodar Lohani | ||
* profile: https://github.com/lohanidamodar | ||
*/ | ||
import 'package:flutter/material.dart'; | ||
|
||
class LoginElevenPage extends StatelessWidget { | ||
static final String path = "lib/src/pages/login/login11.dart"; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Stack( | ||
fit: StackFit.expand, | ||
children: [ | ||
Container( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.stretch, | ||
children: [ | ||
Expanded( | ||
child: Card( | ||
color: Colors.red, | ||
margin: const EdgeInsets.all(0), | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(0), | ||
), | ||
elevation: 10, | ||
), | ||
), | ||
Spacer(), | ||
], | ||
), | ||
), | ||
SafeArea( | ||
child: ListView( | ||
children: [ | ||
const SizedBox(height: 40.0), | ||
Text( | ||
"Welcome", | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.headline3.copyWith( | ||
color: Colors.white, | ||
), | ||
), | ||
Text( | ||
"Awesome login Form", | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
color: Colors.white, | ||
fontSize: 18.0, | ||
), | ||
), | ||
const SizedBox(height: 30.0), | ||
Card( | ||
margin: const EdgeInsets.all(32.0), | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(10.0), | ||
), | ||
child: ListView( | ||
shrinkWrap: true, | ||
primary: false, | ||
physics: NeverScrollableScrollPhysics(), | ||
padding: const EdgeInsets.all(16.0), | ||
children: [ | ||
const SizedBox(height: 20.0), | ||
Text( | ||
"Log In", | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.headline5.copyWith( | ||
color: Colors.red, | ||
), | ||
), | ||
const SizedBox(height: 40.0), | ||
TextField( | ||
decoration: InputDecoration( | ||
labelText: "Enter username", | ||
), | ||
), | ||
TextField( | ||
obscureText: true, | ||
decoration: InputDecoration( | ||
labelText: "Enter password", | ||
), | ||
), | ||
const SizedBox(height: 30.0), | ||
ElevatedButton( | ||
child: Text("SUBMIT"), | ||
onPressed: () {}, | ||
style: ElevatedButton.styleFrom( | ||
padding: const EdgeInsets.all(16.0), | ||
), | ||
), | ||
const SizedBox(height: 10.0), | ||
TextButton( | ||
child: Text( | ||
"Forgot Password?", | ||
style: TextStyle( | ||
fontSize: 20.0, | ||
color: Colors.red, | ||
), | ||
textAlign: TextAlign.center, | ||
), | ||
onPressed: () {}, | ||
), | ||
const SizedBox(height: 20.0), | ||
], | ||
), | ||
) | ||
], | ||
), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
} |