Skip to content

Commit

Permalink
login 11
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Dec 10, 2020
1 parent 3754390 commit 18d4481
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/presentation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import 'package:flutter_ui_challenges/src/pages/invitation/inlanding.dart';
import 'package:flutter_ui_challenges/src/pages/invitation/invitation1.dart';
import 'package:flutter_ui_challenges/src/pages/login/auth3.dart';
import 'package:flutter_ui_challenges/src/pages/login/login10.dart';
import 'package:flutter_ui_challenges/src/pages/login/login11.dart';
import 'package:flutter_ui_challenges/src/pages/login/login8.dart';
import 'package:flutter_ui_challenges/src/pages/login/login9.dart';
import 'package:flutter_ui_challenges/src/pages/misc/bottomsheet.dart';
Expand Down Expand Up @@ -144,6 +145,7 @@ final List<dynamic> pages = [
path: ProfileEightPage.path),
]),
MenuItem(title: "Authentication", icon: Icons.lock, items: [
SubMenuItem("Login 11", LoginElevenPage(), path: LoginElevenPage.path),
SubMenuItem("Login 10", LoginTenPage(), path: LoginTenPage.path),
SubMenuItem("Auth Three", AuthThreePage(), path: AuthThreePage.path),
SubMenuItem("Auth One", AuthOnePage(), path: AuthOnePage.path),
Expand Down
117 changes: 117 additions & 0 deletions lib/src/pages/login/login11.dart
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),
],
),
)
],
),
)
],
),
);
}
}

0 comments on commit 18d4481

Please sign in to comment.