Skip to content

Commit 6f876ee

Browse files
committed
signup arrow button widgets added now you can use all pages
1 parent 9071fda commit 6f876ee

File tree

2 files changed

+43
-21
lines changed

2 files changed

+43
-21
lines changed

lib/page/signup/SignPageFour.dart

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:flutter_ui_nice/const/gradient_const.dart';
88
import 'package:flutter_ui_nice/const/images_const.dart';
99
import 'package:flutter_ui_nice/const/size_const.dart';
1010
import 'package:flutter_ui_nice/const/string_const.dart';
11+
import 'package:flutter_ui_nice/page/signup/widgets/signup_arrow_button.dart';
1112

1213
class SignPageFour extends StatefulWidget {
1314
@override
@@ -137,34 +138,18 @@ class _SignPageFourState extends State<SignPageFour> {
137138
Positioned(
138139
bottom: _media.height / 6.3,
139140
right: 15,
140-
child: signUpButton(),
141+
child: SignUpArrowButton(
142+
icon: Icons.arrow_forward,
143+
iconSize: 26,
144+
onTap: () => print("Signup Tapped"),
145+
),
141146
),
142147
],
143148
),
144149
),
145150
));
146151
}
147152

148-
Widget signUpButton() {
149-
return InkWell(
150-
onTap: () => print("Tapped Login Button"),
151-
splashColor: Colors.red,
152-
child: Container(
153-
height: 50,
154-
width: 50,
155-
decoration: BoxDecoration(
156-
shape: BoxShape.circle,
157-
gradient: SIGNUP_CIRCLE_BUTTON_BACKGROUND,
158-
),
159-
child: Icon(
160-
Icons.arrow_forward,
161-
size: 26,
162-
color: Colors.white70,
163-
),
164-
),
165-
);
166-
}
167-
168153
Widget inputText(
169154
String fieldName,
170155
String hintText,
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_ui_nice/const/gradient_const.dart';
3+
4+
class SignUpArrowButton extends StatelessWidget {
5+
final IconData icon;
6+
final Function onTap;
7+
final double iconSize;
8+
final double height;
9+
final double width;
10+
11+
SignUpArrowButton(
12+
{this.icon,
13+
this.iconSize,
14+
this.onTap,
15+
this.height = 50.0,
16+
this.width = 50.0});
17+
18+
@override
19+
Widget build(BuildContext context) {
20+
return InkWell(
21+
onTap: onTap,
22+
child: Container(
23+
height: height,
24+
width: width,
25+
decoration: BoxDecoration(
26+
shape: BoxShape.circle,
27+
gradient: SIGNUP_CIRCLE_BUTTON_BACKGROUND,
28+
),
29+
child: Icon(
30+
icon,
31+
size: iconSize,
32+
color: Colors.white,
33+
),
34+
),
35+
);
36+
}
37+
}

0 commit comments

Comments
 (0)