@@ -24,11 +24,7 @@ class _SignPageFiveState extends State<SignPageFive> {
24
24
25
25
@override
26
26
void initState () {
27
- _pageController.addListener (() {
28
- setState (() {
29
- widgetIndex = _pageController.page.ceil ();
30
- });
31
- });
27
+ _pageController = PageController ();
32
28
33
29
super .initState ();
34
30
}
@@ -37,7 +33,7 @@ class _SignPageFiveState extends State<SignPageFive> {
37
33
Widget build (BuildContext context) {
38
34
List <Widget > widgets = [
39
35
loginColumn (),
40
- loginColumn (),
36
+ sigNupColumn (),
41
37
];
42
38
43
39
return Scaffold (
@@ -78,8 +74,8 @@ class _SignPageFiveState extends State<SignPageFive> {
78
74
onTap: () {
79
75
_selectType (false );
80
76
_pageController.previousPage (
81
- duration: Duration (milliseconds: 200 ),
82
- curve: Curves .bounceInOut ,
77
+ duration: Duration (milliseconds: 300 ),
78
+ curve: Curves .easeInBack ,
83
79
);
84
80
},
85
81
child: Opacity (
@@ -99,7 +95,7 @@ class _SignPageFiveState extends State<SignPageFive> {
99
95
InkWell (
100
96
onTap: () {
101
97
_pageController.nextPage (
102
- duration: Duration (milliseconds: 200 ),
98
+ duration: Duration (milliseconds: 300 ),
103
99
curve: Curves .easeInBack,
104
100
);
105
101
_selectType (true );
@@ -247,6 +243,54 @@ class _SignPageFiveState extends State<SignPageFive> {
247
243
);
248
244
}
249
245
246
+ Column sigNupColumn () {
247
+ return Column (
248
+ crossAxisAlignment: CrossAxisAlignment .start,
249
+ children: < Widget > [
250
+ SizedBox (
251
+ height: 10 ,
252
+ ),
253
+ Text (
254
+ "Welcome" ,
255
+ style: TextStyle (
256
+ fontSize: 40 ,
257
+ fontWeight: FontWeight .w400,
258
+ wordSpacing: 2 ,
259
+ letterSpacing: 2 ,
260
+ ),
261
+ ),
262
+ Text (
263
+ "Sign In!" ,
264
+ style: TextStyle (
265
+ fontSize: 40 ,
266
+ fontWeight: FontWeight .w400,
267
+ wordSpacing: 2 ,
268
+ letterSpacing: 2 ,
269
+ ),
270
+ ),
271
+ Expanded (child: Container ()),
272
+ emailTextFieldWidget (),
273
+ SizedBox (
274
+ height: 1.5 ,
275
+ child: Container (
276
+ color: Colors .black,
277
+ ),
278
+ ),
279
+ Expanded (
280
+ flex: 3 ,
281
+ child: passwordTextFieldWidget (),
282
+ ),
283
+ Text (
284
+ "NEXT" ,
285
+ style: TextStyle (fontSize: 14 , fontWeight: FontWeight .bold),
286
+ ),
287
+ SizedBox (
288
+ height: 15 ,
289
+ )
290
+ ],
291
+ );
292
+ }
293
+
250
294
Column loginColumn () {
251
295
return Column (
252
296
crossAxisAlignment: CrossAxisAlignment .start,
0 commit comments