Skip to content

Commit eda1b88

Browse files
committed
login form type 4, 5 completed
1 parent ad6079b commit eda1b88

20 files changed

+438
-18
lines changed

assets/icons/arrow.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/icons/close.svg

Lines changed: 3 additions & 3 deletions
Loading

assets/icons/facebook.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/icons/twitter.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/images/peep_standing_center.svg

Lines changed: 7 additions & 0 deletions
Loading

assets/images/peep_standing_left.svg

Lines changed: 8 additions & 0 deletions
Loading

assets/images/peep_standing_right.svg

Lines changed: 7 additions & 0 deletions
Loading

assets/images/peep_verify.svg

Lines changed: 15 additions & 0 deletions
Loading

lib/custom_widgets/button_solid_with_icon.dart

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,20 @@ import 'package:flutter/cupertino.dart';
33
import 'package:flutter/material.dart';
44
import 'package:flutter_svg/svg.dart';
55

6-
class ButtonSolidWithIcon extends StatelessWidget {
6+
class ButtonPlainWithIcon extends StatelessWidget {
77
final String text;
8+
final String iconPath;
89
final VoidCallback callback;
10+
final bool isPrefix;
11+
final bool isSuffix;
912

10-
const ButtonSolidWithIcon({this.text, this.callback});
13+
const ButtonPlainWithIcon({
14+
this.text,
15+
this.callback,
16+
this.isPrefix,
17+
this.isSuffix,
18+
this.iconPath,
19+
});
1120

1221
@override
1322
Widget build(BuildContext context) {
@@ -21,14 +30,25 @@ class ButtonSolidWithIcon extends StatelessWidget {
2130
child: Row(
2231
mainAxisAlignment: MainAxisAlignment.center,
2332
children: <Widget>[
33+
isPrefix
34+
? Padding(
35+
padding: const EdgeInsets.symmetric(horizontal: 8.0),
36+
child: SvgPicture.asset(
37+
iconPath,
38+
color: white,
39+
),
40+
)
41+
: SizedBox(),
2442
Text(
2543
text,
2644
style: TextStyle(fontSize: 21.0, fontWeight: FontWeight.bold),
2745
),
28-
Padding(
29-
padding: const EdgeInsets.symmetric(horizontal: 8.0),
30-
child: SvgPicture.asset("assets/icons/arrow_next.svg"),
31-
)
46+
isSuffix
47+
? Padding(
48+
padding: const EdgeInsets.symmetric(horizontal: 8.0),
49+
child: SvgPicture.asset(iconPath),
50+
)
51+
: SizedBox()
3252
],
3353
),
3454
shape: RoundedRectangleBorder(

lib/login/contact_us_form.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ class ContactUsForm extends StatelessWidget {
7575
SizedBox(
7676
height: 24,
7777
),
78-
ButtonSolidWithIcon(
78+
ButtonPlainWithIcon(
79+
iconPath: "assets/icons/arrow_next.svg",
80+
isPrefix: false,
81+
isSuffix: true,
7982
text: "Send Message",
8083
callback: () {},
8184
),

0 commit comments

Comments
 (0)