Skip to content

Commit

Permalink
login nine page
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Aug 11, 2020
1 parent 69883f1 commit 90b3cef
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat

## User Flow Screens

<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/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
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/login8.dart';
import 'package:flutter_ui_challenges/src/pages/login/login9.dart';
import 'package:flutter_ui_challenges/src/pages/misc/bottomsheet.dart';
import 'package:flutter_ui_challenges/src/pages/food/cake.dart';
import 'package:flutter_ui_challenges/src/pages/misc/crop.dart';
Expand Down Expand Up @@ -149,6 +150,7 @@ final List<dynamic> pages = [
SubMenuItem("Login Six", LoginSixPage(), path: LoginSixPage.path),
SubMenuItem("Login Seven", LoginSevenPage(), path: LoginSevenPage.path),
SubMenuItem("Login Eight", LoginEightPage(), path: LoginEightPage.path),
SubMenuItem("Login Nine", LoginNinePage(), path: LoginNinePage.path),
SubMenuItem("Signup One", SignupOnePage(), path: SignupOnePage.path),
SubMenuItem("Signup Two", SignupTwoPage(), path: SignupTwoPage.path),
]),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/pages/login/login8.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Author: Sudip Thapa
* profile: https://github.com/sudeepthapa
* Author: Damodar Lohani
* profile: https://github.com/lohanidamodar
*/
import 'package:flutter/material.dart';
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart';
Expand Down
150 changes: 150 additions & 0 deletions lib/src/pages/login/login9.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import 'package:animator/animator.dart';
/**
* Author: Damodar Lohani
* profile: https://github.com/lohanidamodar
*/
import 'package:flutter/material.dart';
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart';

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

@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(
child: Stack(
fit: StackFit.expand,
children: [
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage(images[0]),
fit: BoxFit.cover,
),
),
foregroundDecoration: BoxDecoration(
color: Colors.black.withOpacity(0.7),
),
),
if (MediaQuery.of(context).viewInsets == EdgeInsets.zero)
Padding(
padding: const EdgeInsets.only(top: kToolbarHeight),
child: Text(
"Beautiful App",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 20.0,
),
textAlign: TextAlign.center,
),
),
Animator<double>(
triggerOnInit: true,
curve: Curves.easeIn,
tween: Tween<double>(begin: -1, end: 0),
builder: (context, state, child) {
return FractionalTranslation(
translation: Offset(state.value,0),
child: child,
);
},
child: Align(
alignment: Alignment.bottomCenter,
child: ListView(
physics:
MediaQuery.of(context).viewInsets == EdgeInsets.zero
? NeverScrollableScrollPhysics()
: null,
padding: const EdgeInsets.all(32.0),
shrinkWrap: true,
children: [
const SizedBox(height: kToolbarHeight),
Text(
"Namaste!",
style: Theme.of(context)
.textTheme
.headline4
.copyWith(color: Colors.white),
textAlign: TextAlign.center,
),
const SizedBox(height: 10.0),
Text(
"Welcome to this awesome app. We are so happy that you are using our app.",
style: TextStyle(
color: Colors.blueGrey,
fontSize: 16.0,
),
textAlign: TextAlign.center,
),
const SizedBox(height: 20.0),
TextField(
decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(
vertical: 16.0, horizontal: 32.0),
suffixIcon: Icon(
Icons.person,
color: Colors.blueGrey,
),
hintText: "Username",
hintStyle: TextStyle(color: Colors.blueGrey),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(40.0),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blueGrey),
borderRadius: BorderRadius.circular(40.0),
),
),
),
const SizedBox(height: 10.0),
TextField(
decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(
vertical: 16.0, horizontal: 32.0),
suffixIcon: Icon(
Icons.lock,
color: Colors.blueGrey,
),
hintText: "Password",
hintStyle: TextStyle(color: Colors.blueGrey),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(40.0),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blueGrey),
borderRadius: BorderRadius.circular(40.0),
),
),
),
const SizedBox(height: 20.0),
FlatButton(
textColor: Colors.white,
child: Text("Create new account"),
onPressed: () {},
),
],
),
),
),
],
),
),
if (MediaQuery.of(context).viewInsets == EdgeInsets.zero)
RaisedButton(
padding: const EdgeInsets.all(32.0),
elevation: 0,
textColor: Colors.white,
color: Colors.deepOrange,
child: Text("Continue".toUpperCase()),
onPressed: () {},
)
],
),
);
}
}
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ dependencies:
flutter_staggered_grid_view: ^0.3.0
crop: ^0.1.2
share: ^0.6.4+3
animator: ^2.0.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.7.0
flutter_automation:
flutter_automation: null

flutter_icons:
android: true
Expand All @@ -44,7 +45,6 @@ flutter_icons:

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
Expand Down Expand Up @@ -89,7 +89,7 @@ flutter:
fonts:
- asset: assets/fonts/icomoon.ttf


- family: MyFlutterApp
fonts:
- asset: assets/fonts/MyFlutterApp.ttf

Binary file added screenshots/login9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 90b3cef

Please sign in to comment.