File tree Expand file tree Collapse file tree 2 files changed +43
-21
lines changed Expand file tree Collapse file tree 2 files changed +43
-21
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'package:flutter_ui_nice/const/gradient_const.dart';
8
8
import 'package:flutter_ui_nice/const/images_const.dart' ;
9
9
import 'package:flutter_ui_nice/const/size_const.dart' ;
10
10
import 'package:flutter_ui_nice/const/string_const.dart' ;
11
+ import 'package:flutter_ui_nice/page/signup/widgets/signup_arrow_button.dart' ;
11
12
12
13
class SignPageFour extends StatefulWidget {
13
14
@override
@@ -137,34 +138,18 @@ class _SignPageFourState extends State<SignPageFour> {
137
138
Positioned (
138
139
bottom: _media.height / 6.3 ,
139
140
right: 15 ,
140
- child: signUpButton (),
141
+ child: SignUpArrowButton (
142
+ icon: Icons .arrow_forward,
143
+ iconSize: 26 ,
144
+ onTap: () => print ("Signup Tapped" ),
145
+ ),
141
146
),
142
147
],
143
148
),
144
149
),
145
150
));
146
151
}
147
152
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
-
168
153
Widget inputText (
169
154
String fieldName,
170
155
String hintText,
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments