Skip to content

Commit

Permalink
Merge branch 'loginpage-design'
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Feb 2, 2021
2 parents d57eea2 + 0fb381f commit 980e50c
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat

## User Flow Screens

<img height="480px" src="screenshots/login10.png"> <img height="480px" src="screenshots/login9.png"> <img height="480px" src="screenshots/login8.png"> <img height="480px" src="screenshots/auth3-1.png"> <img height="480px" src="screenshots/auth3-2.png"> <img height="480px" src="screenshots/login7.png"> <img height="480px" src="screenshots/signup2.png"> <img height="480px" src="screenshots/login6.png"> <img height="480px" src="screenshots/auth2.png"> <img height="480px" src="screenshots/login5.png"> <img height="480px" src="screenshots/auth1.png"> <img height="480px" src="screenshots/login4.png"> <img height="480px" src="screenshots/login1.png"> <img height="480px" src="screenshots/login2.png"> <img height="480px" src="screenshots/login3.gif"> <img height="480px" src="screenshots/signup1.png">
<img height="480px" src="screenshots/login12.jpg"><img height="480px" src="screenshots/login10.png"> <img height="480px" src="screenshots/login9.png"> <img height="480px" src="screenshots/login8.png"> <img height="480px" src="screenshots/auth3-1.png"> <img height="480px" src="screenshots/auth3-2.png"> <img height="480px" src="screenshots/login7.png"> <img height="480px" src="screenshots/signup2.png"> <img height="480px" src="screenshots/login6.png"> <img height="480px" src="screenshots/auth2.png"> <img height="480px" src="screenshots/login5.png"> <img height="480px" src="screenshots/auth1.png"> <img height="480px" src="screenshots/login4.png"> <img height="480px" src="screenshots/login1.png"> <img height="480px" src="screenshots/login2.png"> <img height="480px" src="screenshots/login3.gif"> <img height="480px" src="screenshots/signup1.png">

## Settings UIs
<img height="480px" src="screenshots/settings1.png"> <img height="480px" src="screenshots/settings2.png"> <img height="480px" src="screenshots/settings3.png">
Expand Down Expand Up @@ -92,7 +92,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat

## Navigations

<img height="480px" src="screenshots/menu1.png"> <img height="480px" src="screenshots/bottom.png"> <img height="480px" src="screenshots/drawer2.png"> <img height="480px" src="screenshots/dark_drawer_nav.png"> <img height="480px" src="screenshots/hidden_menu1.gif">
<img height="480px" src="screenshots/menu2.jpg"> <img height="480px" src="screenshots/menu1.png"> <img height="480px" src="screenshots/bottom.png"> <img height="480px" src="screenshots/drawer2.png"> <img height="480px" src="screenshots/dark_drawer_nav.png"> <img height="480px" src="screenshots/hidden_menu1.gif">

## Onboarding Screens

Expand Down
7 changes: 6 additions & 1 deletion lib/core/presentation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ 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/login12.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 All @@ -29,6 +30,7 @@ import 'package:flutter_ui_challenges/src/pages/misc/image_popup.dart';
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer.dart';
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer2.dart';
import 'package:flutter_ui_challenges/src/pages/misc/otp.dart';
import 'package:flutter_ui_challenges/src/pages/navigation/automultiscreen.dart';
import 'package:flutter_ui_challenges/src/pages/navigation/menu1.dart';
import 'package:flutter_ui_challenges/src/pages/onboarding/intro6.dart';
import 'package:flutter_ui_challenges/src/pages/profile/profile10.dart';
Expand Down Expand Up @@ -123,6 +125,7 @@ final List<dynamic> pages = [
SubMenuItem("Fancy Appbar Animation", FancyAppbarAnimation(),
path: FancyAppbarAnimation.path),
SubMenuItem("Hero Animation", AnimationOnePage(),

path: AnimationOnePage.path),
SubMenuItem("Bottom Reveal Animation", AnimationTwoPage(),
path: AnimationTwoPage.path),
Expand All @@ -148,6 +151,7 @@ final List<dynamic> pages = [
path: ProfileEightPage.path),
]),
MenuItem(title: "Authentication", icon: Icons.lock, items: [
SubMenuItem("Login 12", LoginTwelvePage(), path: LoginTwelvePage.path),
SubMenuItem("Login 11", LoginElevenPage(), path: LoginElevenPage.path),
SubMenuItem("Login 10", LoginTenPage(), path: LoginTenPage.path),
SubMenuItem("Auth Three", AuthThreePage(), path: AuthThreePage.path),
Expand Down Expand Up @@ -292,7 +296,8 @@ final List<dynamic> pages = [
path: HotelDetailsPage.path),
]),
MenuItem(title: "Navigation", icon: Icons.menu, items: [
SubMenuItem("Menu One", MenuOnePage(), path: MenuOnePage.path),
SubMenuItem("Menu One", MenuOnePage(), path: MenuOnePage.path),
SubMenuItem("Hidden drawer nav", HiddenDrawerNav(), path: HiddenDrawerNav.path),
SubMenuItem("Hidden Menu", HiddenMenuPage(), path: HiddenMenuPage.path),
SubMenuItem("Dark Drawer Menu", DarkDrawerPage(),
path: DarkDrawerPage.path),
Expand Down
9 changes: 3 additions & 6 deletions lib/generated_plugin_registrant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
// Generated file. Do not edit.
//

// ignore: unused_import
import 'dart:ui';

import 'package:url_launcher_web/url_launcher_web.dart';

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs
void registerPlugins(PluginRegistry registry) {
UrlLauncherPlugin.registerWith(registry.registrarFor(UrlLauncherPlugin));
registry.registerMessageHandler();
void registerPlugins(Registrar registrar) {
UrlLauncherPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
183 changes: 183 additions & 0 deletions lib/src/pages/login/login12.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
/**
* Author: Aparna Dulal
* profile: https://github.com/Ambikadulal
*/
import 'package:flutter/material.dart';
import 'package:simple_animations/simple_animations.dart';


class LoginTwelvePage extends StatelessWidget {
static final String path = "lib/src/pages/login/login12.dart";

@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
colors: [
Colors.orange[900],
Colors.orange[800],
Colors.orange[400]
]
)
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(height: 80,),
Padding(
padding: EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
FadeAnimation(1, Text("Login", style: TextStyle(color: Colors.white, fontSize: 40),)),
SizedBox(height: 10,),
FadeAnimation(1.3, Text("Welcome Back", style: TextStyle(color: Colors.white, fontSize: 18),)),
],
),
),
SizedBox(height: 20),
Expanded(
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(topLeft: Radius.circular(60), topRight: Radius.circular(60))
),
child: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.all(30),
child: Column(
children: <Widget>[
SizedBox(height: 60,),
FadeAnimation(1.4, Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10),
boxShadow: [BoxShadow(
color: Color.fromRGBO(225, 95, 27, .3),
blurRadius: 20,
offset: Offset(0, 10)
)]
),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border(bottom: BorderSide(color: Colors.grey[200]))
),
child: TextField(
decoration: InputDecoration(
hintText: "Email or Phone number",
hintStyle: TextStyle(color: Colors.grey),
border: InputBorder.none
),
),
),
Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border(bottom: BorderSide(color: Colors.grey[200]))
),
child: TextField(
decoration: InputDecoration(
hintText: "Password",
hintStyle: TextStyle(color: Colors.grey),
border: InputBorder.none
),
),
),
],
),
)),
SizedBox(height: 40,),
FadeAnimation(1.5, Text("Forgot Password?", style: TextStyle(color: Colors.grey),)),
SizedBox(height: 20,),
FadeAnimation(1.6, Container(
height: 50,
margin: EdgeInsets.symmetric(horizontal: 50),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
color: Colors.orange[900]
),
child: Center(
child: Text("Login", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),),
),
)),
SizedBox(height: 50,),
FadeAnimation(1.7, Text("Continue with social media", style: TextStyle(color: Colors.grey),)),
SizedBox(height: 30,),
Row(
children: <Widget>[
Expanded(
child: FadeAnimation(1.8, Container(
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
color: Colors.blue
),
child: Center(
child: Text("Facebook", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),),
),
)),
),
SizedBox(width: 30,),
Expanded(
child: FadeAnimation(1.9, Container(
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
color: Colors.black
),
child: Center(
child: Text("Github", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),),
),
)),
)
],
)
],
),
),
),
),
)
],
),
),
);
}
}
class FadeAnimation extends StatelessWidget {
final double delay;
final Widget child;

FadeAnimation(this.delay, this.child);

@override
Widget build(BuildContext context) {
final tween = MultiTrackTween([
Track("opacity").add(Duration(milliseconds: 500), Tween(begin: 0.0, end: 1.0)),
Track("translateY").add(
Duration(milliseconds: 500), Tween(begin: -30.0, end: 0.0),
curve: Curves.easeOut)
]);

return ControlledAnimation(
delay: Duration(milliseconds: (500 * delay).round()),
duration: tween.duration,
tween: tween,
child: child,
builderWithChild: (context, child, animation) => Opacity(
opacity: animation["opacity"],
child: Transform.translate(
offset: Offset(0, animation["translateY"]),
child: child
),
),
);
}
}
Loading

0 comments on commit 980e50c

Please sign in to comment.