Skip to content

Commit 4786d8f

Browse files
committed
sign page 7 started
1 parent 9e19ab0 commit 4786d8f

File tree

2 files changed

+99
-1
lines changed

2 files changed

+99
-1
lines changed

lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:flutter_ui_nice/page/signup/SignPageEight.dart';
44
import 'package:flutter_ui_nice/page/signup/SignPageFive.dart';
55
import 'package:flutter_ui_nice/page/signup/SignPageFour.dart';
66
import 'package:flutter_ui_nice/page/signup/SignPageEleven.dart';
7+
import 'package:flutter_ui_nice/page/signup/SignPageSeven.dart';
78
import 'package:flutter_ui_nice/page/signup/SignPageSix.dart';
89
import 'package:flutter_ui_nice/page/signup/SignPageNine.dart';
910
import 'package:flutter_ui_nice/page/signup/SingPageTen.dart';
@@ -34,7 +35,7 @@ class MyApp extends StatelessWidget {
3435
SIGN_UP_PAGES[3]: (context) => SignPageFour(),
3536
SIGN_UP_PAGES[4]: (context) => SignPageFive(),
3637
SIGN_UP_PAGES[5]: (context) => SignPageSix(),
37-
SIGN_UP_PAGES[6]: (context) => SignPageFour(),
38+
SIGN_UP_PAGES[6]: (context) => SignPageSeven(),
3839
SIGN_UP_PAGES[7]: (context) => SignPageEight(),
3940
SIGN_UP_PAGES[8]: (context) => SignPageNine(),
4041
SIGN_UP_PAGES[9]: (context) => SignPageTeen(),

lib/page/signup/SignPageSeven.dart

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_ui_nice/const/gradient_const.dart';
3+
4+
class SignPageSeven extends StatefulWidget {
5+
@override
6+
_SignPageSevenState createState() => _SignPageSevenState();
7+
}
8+
9+
class _SignPageSevenState extends State<SignPageSeven> {
10+
@override
11+
Widget build(BuildContext context) {
12+
final _media = MediaQuery.of(context).size;
13+
final _toolbarSize = MediaQuery.of(context).padding;
14+
return Scaffold(
15+
body: SingleChildScrollView(
16+
physics: BouncingScrollPhysics(),
17+
child: Container(
18+
padding: MediaQuery.of(context).padding,
19+
height: _media.height,
20+
width: _media.width,
21+
decoration: BoxDecoration(
22+
gradient: SIGNUP_BACKGROUND,
23+
),
24+
child: Stack(
25+
alignment: Alignment.center,
26+
children: <Widget>[
27+
Row(
28+
children: <Widget>[
29+
Container(
30+
height: _media.height,
31+
width: _media.width / 2,
32+
decoration: BoxDecoration(
33+
gradient: LinearGradient(
34+
colors: [
35+
Colors.black.withOpacity(0.05),
36+
Colors.transparent,
37+
],
38+
begin: FractionalOffset.topCenter,
39+
end: FractionalOffset.bottomCenter,
40+
stops: [0.2, 0.8]),
41+
),
42+
child: Padding(
43+
padding: const EdgeInsets.only(top: 25.0),
44+
child: Opacity(
45+
opacity: 0.5,
46+
child: Text(
47+
"Log In",
48+
style: TextStyle(
49+
fontSize: 30,
50+
color: Colors.black54,
51+
),
52+
textAlign: TextAlign.center,
53+
),
54+
),
55+
),
56+
),
57+
Container(
58+
height: _media.height,
59+
width: _media.width / 2,
60+
child: Padding(
61+
padding: const EdgeInsets.only(top: 25.0),
62+
child: Opacity(
63+
opacity: 1,
64+
child: Text(
65+
"Sign Up",
66+
style: TextStyle(
67+
fontSize: 30,
68+
color: Colors.black54,
69+
),
70+
textAlign: TextAlign.center,
71+
),
72+
),
73+
),
74+
),
75+
],
76+
),
77+
Container(
78+
margin: EdgeInsets.only(
79+
top: 110,
80+
left: 50,
81+
right: 50,
82+
bottom: 100,
83+
),
84+
height: _media.height,
85+
width: _media.width,
86+
decoration: BoxDecoration(
87+
borderRadius: BorderRadius.circular(10),
88+
color: Colors.red,
89+
),
90+
),
91+
],
92+
),
93+
),
94+
),
95+
);
96+
}
97+
}

0 commit comments

Comments
 (0)