@@ -7,6 +7,7 @@ import 'package:flutter_ui_nice/const/string_const.dart';
7
7
import 'dart:io' ;
8
8
9
9
import 'package:flutter_ui_nice/page/signup/widgets/signup_arrow_button.dart' ;
10
+ import '../../const/icons.dart' ;
10
11
11
12
class SignPageThree extends StatefulWidget {
12
13
@override
@@ -38,137 +39,139 @@ class _SignPageThreeState extends State<SignPageThree> {
38
39
child: Column (
39
40
crossAxisAlignment: CrossAxisAlignment .start,
40
41
children: < Widget > [
41
- Center (child: Image .asset (
42
- SignUpImagePath .SignUpLogo ,
43
- height: _media.height/ 7 ,
44
- ),),
45
- Row (
46
- children: < Widget > [
47
- Container (
48
- height: _media.height/ 1.7 ,
49
- width: _media.width/ 1.25 ,
50
-
51
- decoration: BoxDecoration (
52
- borderRadius: BorderRadius .only (topRight: Radius .circular (15 ),bottomRight: Radius .circular (15 )),
53
- gradient: SIGNUP_CARD_BACKGROUND ,
54
- boxShadow: [
55
- BoxShadow (
56
- color: Colors .black12,
57
- blurRadius: 15 ,
58
- spreadRadius: 8 ,
59
- ),
60
- ],
61
-
62
- ),
63
- child: Padding (
64
- padding: EdgeInsets .only (left: 40 ,top: 60 ),
65
- child: new Column (
66
- crossAxisAlignment: CrossAxisAlignment .start,
67
-
68
- children: < Widget > [
69
- Text (
70
- 'Log in' ,
71
- style: TextStyle (
72
- fontFamily: "Montserrat" ,
73
- fontWeight: FontWeight .w300,
74
- fontSize: 40 ),
75
- ),
76
- Text (
77
- 'to continue..' ,
78
- style: TextStyle (
79
- fontFamily: "Montserrat" ,
80
- fontWeight: FontWeight .w300,
81
- fontSize: 40 ),
82
- ),
83
- SizedBox (height: 40 ,),
84
- inputText ("Username" ,
85
- _username, false ),
86
- Divider (
87
- height: 5 ,
88
- color: Colors .black,
42
+ Center (
43
+ child: Image .asset (
44
+ SignUpImagePath .SignUpLogo ,
45
+ height: _media.height / 7 ,
46
+ ),
47
+ ),
48
+ Container (
49
+ margin: EdgeInsets .only (right: 8.0 ),
50
+ child: Row (
51
+ children: < Widget > [
52
+ Container (
53
+ height: _media.height / 1.7 ,
54
+ width: _media.width / 1.25 ,
55
+ decoration: BoxDecoration (
56
+ borderRadius: BorderRadius .only (
57
+ topRight: Radius .circular (15 ),
58
+ bottomRight: Radius .circular (15 )),
59
+ gradient: LinearGradient (
60
+ begin: FractionalOffset (0.0 , 0.4 ),
61
+ end: FractionalOffset (0.9 , 0.7 ),
62
+ // Add one stop for each color. Stops should increase from 0 to 1
63
+ stops: [
64
+ 0.2 ,
65
+ 0.9
66
+ ],
67
+ colors: [
68
+ Color (0xffFFC3A0 ),
69
+ Color (0xffFFAFBD ),
70
+ ]),
71
+ boxShadow: [
72
+ BoxShadow (
73
+ color: Colors .black12,
74
+ blurRadius: 15 ,
75
+ spreadRadius: 8 ,
89
76
),
90
- inputText (
91
- "Password" , _password, true ),
92
-
93
-
94
-
95
-
96
-
97
77
],
98
78
),
99
- ),
100
-
101
- ),
102
- Flexible (
103
- child: Opacity (
104
- opacity: 0.6 ,
105
- child: new Container (
106
- height: _media.height/ 1.7 - 20 ,
107
- width: 25 ,
108
- decoration: BoxDecoration (
109
- color: Colors .white,
110
- borderRadius: BorderRadius .only (topRight: Radius .circular (15 ),bottomRight: Radius .circular (15 )),
111
- boxShadow: [
112
- BoxShadow (
113
- color: Colors .black12,
114
- blurRadius: 15 ,
115
- spreadRadius: 8 ,
79
+ child: Padding (
80
+ padding: EdgeInsets .only (left: 30 , top: 60 ),
81
+ child: new Column (
82
+ crossAxisAlignment: CrossAxisAlignment .start,
83
+ children: < Widget > [
84
+ Text (
85
+ 'Log in\n to continue.' ,
86
+ style: TextStyle (
87
+ fontFamily: "Montserrat" ,
88
+ fontWeight: FontWeight .w500,
89
+ fontSize: 32 ),
90
+ ),
91
+ SizedBox (
92
+ height: 40 ,
116
93
),
94
+ Container (
95
+ margin: EdgeInsets .only (bottom: 16.0 ),
96
+ child: inputText (
97
+ "Email" , _username, false , true )),
98
+ inputText ("Password" , _password, true , false ),
117
99
],
118
-
119
100
),
120
101
),
121
102
),
122
- ),
123
- Flexible (
124
- child: Opacity (
125
- opacity: 0.4 ,
126
- child: new Container (
127
- height: _media.height/ 1.7 - 40 ,
128
- width: 25 ,
129
- decoration: BoxDecoration (
130
- color: Colors .white,
131
- borderRadius: BorderRadius .only (topRight: Radius .circular (15 ),bottomRight: Radius .circular (15 )),
132
- boxShadow: [
133
- BoxShadow (
134
- color: Colors .black12,
135
- blurRadius: 15 ,
136
- spreadRadius: 8 ,
137
- ),
138
- ],
139
-
103
+ Flexible (
104
+ child: Opacity (
105
+ opacity: 0.6 ,
106
+ child: new Container (
107
+ height: _media.height / 1.7 - 20 ,
108
+ width: 25 ,
109
+ decoration: BoxDecoration (
110
+ color: Colors .white,
111
+ borderRadius: BorderRadius .only (
112
+ topRight: Radius .circular (15 ),
113
+ bottomRight: Radius .circular (15 )),
114
+ boxShadow: [
115
+ BoxShadow (
116
+ color: Colors .black12,
117
+ blurRadius: 15 ,
118
+ spreadRadius: 8 ,
119
+ ),
120
+ ],
121
+ ),
140
122
),
141
123
),
142
124
),
143
- ),
144
- Flexible (
145
- child: Opacity (
146
- opacity: 0.2 ,
147
- child: new Container (
148
- height: _media.height/ 1.7 - 60 ,
149
- width: 25 ,
150
- decoration: BoxDecoration (
151
- color: Colors .white,
152
- borderRadius: BorderRadius .only (topRight: Radius .circular (15 ),bottomRight: Radius .circular (15 )),
153
- boxShadow: [
154
- BoxShadow (
155
- color: Colors .black12,
156
- blurRadius: 15 ,
157
- spreadRadius: 8 ,
158
- ),
159
- ],
160
-
125
+ Flexible (
126
+ child: Opacity (
127
+ opacity: 0.3 ,
128
+ child: new Container (
129
+ height: _media.height / 1.7 - 40 ,
130
+ width: 25 ,
131
+ decoration: BoxDecoration (
132
+ color: Colors .white,
133
+ borderRadius: BorderRadius .only (
134
+ topRight: Radius .circular (15 ),
135
+ bottomRight: Radius .circular (15 )),
136
+ boxShadow: [
137
+ BoxShadow (
138
+ color: Colors .black12,
139
+ blurRadius: 15 ,
140
+ spreadRadius: 8 ,
141
+ ),
142
+ ],
143
+ ),
161
144
),
162
145
),
163
146
),
164
- )
165
- ],
147
+ Flexible (
148
+ child: Opacity (
149
+ opacity: 0.1 ,
150
+ child: new Container (
151
+ height: _media.height / 1.7 - 60 ,
152
+ width: 25 ,
153
+ decoration: BoxDecoration (
154
+ color: Colors .white,
155
+ borderRadius: BorderRadius .only (
156
+ topRight: Radius .circular (15 ),
157
+ bottomRight: Radius .circular (15 )),
158
+ boxShadow: [
159
+ BoxShadow (
160
+ color: Colors .black12,
161
+ blurRadius: 15 ,
162
+ spreadRadius: 8 ,
163
+ ),
164
+ ],
165
+ ),
166
+ ),
167
+ ),
168
+ )
169
+ ],
170
+ ),
166
171
),
167
-
168
172
Padding (
169
173
padding: EdgeInsets .symmetric (vertical: 60 ),
170
174
child: Row (
171
-
172
175
mainAxisAlignment: MainAxisAlignment .center,
173
176
crossAxisAlignment: CrossAxisAlignment .center,
174
177
children: < Widget > [
@@ -181,54 +184,36 @@ class _SignPageThreeState extends State<SignPageThree> {
181
184
),
182
185
GestureDetector (
183
186
onTap: () => print ("Sign Up Tapped" ),
184
- child: Text ( StringConst .SIGN_UP ),
187
+ child: Text (StringConst .SIGN_UP ),
185
188
),
186
189
],
187
190
),
188
191
),
189
192
SizedBox (
190
193
height: 50 ,
191
194
)
192
-
193
195
],
194
196
),
195
197
),
196
-
197
-
198
-
199
198
Positioned (
200
-
201
- top: _media.height/ 1.7 + _media.height/ 7 + 30 ,
199
+ top: _media.height / 1.7 + _media.height / 7 + 30 ,
202
200
left: 20 ,
203
201
child: SignUpArrowButton (
204
- icon: Icons .arrow_forward ,
205
- iconSize: 26 ,
202
+ icon: IconData (arrow_right, fontFamily : ' Icons' ) ,
203
+ iconSize: 8 ,
206
204
onTap: () => print ("Signup Tapped" ),
207
- )
208
-
209
- ),
205
+ )),
210
206
Positioned (
211
-
212
- top: _media.height/ 1.7 + _media.height/ 7 - 10 ,
213
- left: 40 ,
214
- child: Text (
215
- 'Next' ,
207
+ top: _media.height / 1.7 + _media.height / 7 - 10 ,
208
+ left: 30 ,
209
+ child: Text (
210
+ 'NEXT' ,
216
211
style: TextStyle (
217
212
fontFamily: "Montserrat" ,
218
213
fontWeight: FontWeight .w800,
219
214
fontSize: 16 ),
220
215
),
221
-
222
216
),
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
217
],
233
218
),
234
219
),
@@ -237,27 +222,26 @@ class _SignPageThreeState extends State<SignPageThree> {
237
222
}
238
223
}
239
224
240
- Widget inputText (
241
-
242
- String hintText,
243
- TextEditingController controller,
244
- bool obSecure,
245
- ) {
225
+ Widget inputText (String hintText, TextEditingController controller,
226
+ bool obSecure, bool border) {
246
227
return TextField (
247
- style: TextStyle (height : 1.3 ),
228
+ style: TextStyle (color : Color ( 0xff353535 ), fontWeight : FontWeight .bold ),
248
229
controller: controller,
249
- decoration: InputDecoration (
250
- hintText: hintText,
251
-
252
- labelStyle: TextStyle (
253
- fontSize: TEXT_NORMAL_SIZE ,
254
- fontFamily: "Montserrat" ,
255
- fontWeight: FontWeight .w400,
256
- letterSpacing: 1 ,
257
- height: 0 ,
258
- ),
259
- border: InputBorder .none,
260
- ),
230
+ decoration: new InputDecoration (
231
+ suffixIcon: obSecure
232
+ ? null
233
+ : Padding (
234
+ padding: const EdgeInsets .only (right: 32.0 ),
235
+ child: Icon (IconData (0xe902 , fontFamily: 'Icons' ),
236
+ color: Color (0xff35AA90 ), size: 10.0 ),
237
+ ),
238
+ border: border ? UnderlineInputBorder () : InputBorder .none,
239
+ hintText: hintText,
240
+ hintStyle: TextStyle (
241
+ color: Color (0xff353535 ),
242
+ fontFamily: "Montserrat" ,
243
+ fontWeight: FontWeight .bold,
244
+ fontSize: 16.0 )),
261
245
obscureText: obSecure,
262
246
);
263
247
}
0 commit comments