Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signup Three Page added #2

Merged
merged 3 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import 'package:flutter_ui_nice/page/page_const.dart';
import 'package:flutter_ui_nice/page/signup/SignPageEight.dart';
import 'package:flutter_ui_nice/page/signup/SignPageFive.dart';
import 'package:flutter_ui_nice/page/signup/SignPageFour.dart';
import 'package:flutter_ui_nice/page/signup/SignPageThree.dart';
import 'package:flutter_ui_nice/page/signup/SignPageEleven.dart';
import 'package:flutter_ui_nice/page/signup/SignPageSeven.dart';
import 'package:flutter_ui_nice/page/signup/SignPageSix.dart';
import 'package:flutter_ui_nice/page/signup/SignPageNine.dart';
import 'package:flutter_ui_nice/page/signup/SingPageTen.dart';

import 'const/string_const.dart';
import 'const/color_const.dart';
import 'const/page_str_const.dart';
Expand All @@ -31,7 +33,7 @@ class MyApp extends StatelessWidget {
routes: {
SIGN_UP_PAGES[0]: (context) => SignPageOne(),
SIGN_UP_PAGES[1]: (context) => SignPageTwo(),
//SIGN_UP_PAGES[2]: (context) => SignPageThird(),
SIGN_UP_PAGES[2]: (context) => SignPageThree(),
SIGN_UP_PAGES[3]: (context) => SignPageFour(),
SIGN_UP_PAGES[4]: (context) => SignPageFive(),
SIGN_UP_PAGES[5]: (context) => SignPageSix(),
Expand Down
263 changes: 263 additions & 0 deletions lib/page/signup/SignPageThree.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
import 'package:flutter/material.dart';
import 'package:flutter_ui_nice/const/color_const.dart';
import 'package:flutter_ui_nice/const/gradient_const.dart';
import 'package:flutter_ui_nice/const/images_const.dart';
import 'package:flutter_ui_nice/const/size_const.dart';
import 'package:flutter_ui_nice/const/string_const.dart';
import 'dart:io';

import 'package:flutter_ui_nice/page/signup/widgets/signup_arrow_button.dart';

class SignPageThree extends StatefulWidget {
@override
_SignPageThreeState createState() => _SignPageThreeState();
}

class _SignPageThreeState extends State<SignPageThree> {
TextEditingController _username = TextEditingController();
TextEditingController _password = TextEditingController();

@override
Widget build(BuildContext context) {
final _media = MediaQuery.of(context).size;
return Scaffold(
body: Container(
height: double.infinity,
width: double.infinity,
decoration: BoxDecoration(
gradient: SIGNUP_BACKGROUND,
),
child: SingleChildScrollView(
physics: BouncingScrollPhysics(),
child: Stack(
children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(
vertical: 60,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Center(child: Image.asset(
SignUpImagePath.SignUpLogo,
height: _media.height/7,
),),
Row(
children: <Widget>[
Container(
height: _media.height/1.7,
width: _media.width/1.25,

decoration: BoxDecoration(
borderRadius: BorderRadius.only(topRight: Radius.circular(15),bottomRight: Radius.circular(15)),
gradient: SIGNUP_CARD_BACKGROUND,
boxShadow: [
BoxShadow(
color: Colors.black12,
blurRadius: 15,
spreadRadius: 8,
),
],

),
child: Padding(
padding: EdgeInsets.only(left: 40,top: 60),
child: new Column(
crossAxisAlignment: CrossAxisAlignment.start,

children: <Widget>[
Text(
'Log in',
style: TextStyle(
fontFamily: "Montserrat",
fontWeight: FontWeight.w300,
fontSize: 40),
),
Text(
'to continue..',
style: TextStyle(
fontFamily: "Montserrat",
fontWeight: FontWeight.w300,
fontSize: 40),
),
SizedBox(height: 40,),
inputText("Username",
_username, false),
Divider(
height: 5,
color: Colors.black,
),
inputText(
"Password", _password, true),





],
),
),

),
Flexible(
child: Opacity(
opacity: 0.6,
child: new Container(
height: _media.height/1.7-20,
width: 25,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(topRight: Radius.circular(15),bottomRight: Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Colors.black12,
blurRadius: 15,
spreadRadius: 8,
),
],

),
),
),
),
Flexible(
child: Opacity(
opacity: 0.4,
child: new Container(
height: _media.height/1.7-40,
width: 25,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(topRight: Radius.circular(15),bottomRight: Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Colors.black12,
blurRadius: 15,
spreadRadius: 8,
),
],

),
),
),
),
Flexible(
child: Opacity(
opacity: 0.2,
child: new Container(
height: _media.height/1.7-60,
width: 25,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(topRight: Radius.circular(15),bottomRight: Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Colors.black12,
blurRadius: 15,
spreadRadius: 8,
),
],

),
),
),
)
],
),

Padding(
padding: EdgeInsets.symmetric(vertical: 60),
child: Row(

mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
StringConst.SIGN_UP_TEXT,
style: TextStyle(color: MAIN_COLOR),
),
SizedBox(
width: 5,
),
GestureDetector(
onTap: () => print("Sign Up Tapped"),
child: Text( StringConst.SIGN_UP),
),
],
),
),
SizedBox(
height: 50,
)

],
),
),



Positioned(

top: _media.height/1.7+_media.height/7+30,
left: 20,
child: SignUpArrowButton(
icon: Icons.arrow_forward,
iconSize: 26,
onTap: () => print("Signup Tapped"),
)

),
Positioned(

top: _media.height/1.7+_media.height/7-10,
left: 40,
child: Text(
'Next',
style: TextStyle(
fontFamily: "Montserrat",
fontWeight: FontWeight.w800,
fontSize: 16),
),

),









],
),
),
),
);
}
}

Widget inputText(

String hintText,
TextEditingController controller,
bool obSecure,
) {
return TextField(
style: TextStyle(height: 1.3),
controller: controller,
decoration: InputDecoration(
hintText: hintText,

labelStyle: TextStyle(
fontSize: TEXT_NORMAL_SIZE,
fontFamily: "Montserrat",
fontWeight: FontWeight.w400,
letterSpacing: 1,
height: 0,
),
border: InputBorder.none,
),
obscureText: obSecure,
);
}