diff --git a/lib/core/presentation/routes.dart b/lib/core/presentation/routes.dart index 4f52277f..e6e18ecc 100644 --- a/lib/core/presentation/routes.dart +++ b/lib/core/presentation/routes.dart @@ -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'; @@ -144,6 +145,7 @@ final List 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), diff --git a/lib/src/pages/login/login11.dart b/lib/src/pages/login/login11.dart new file mode 100644 index 00000000..7b07c1ff --- /dev/null +++ b/lib/src/pages/login/login11.dart @@ -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), + ], + ), + ) + ], + ), + ) + ], + ), + ); + } +}