Skip to content

Commit b346014

Browse files
committed
payment card saved page type fixes
1 parent 9bfc480 commit b346014

File tree

5 files changed

+40
-11
lines changed

5 files changed

+40
-11
lines changed

lib/payment/payment_card.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PaymentCard extends StatelessWidget {
8888
"assets/icons/logo_visa.svg",
8989
color: color,
9090
width: 36,
91-
height: 96,
91+
height: 56,
9292
),
9393
),
9494
)

lib/payment/payment_card_item_big.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class PaymentCartItemBig extends StatelessWidget {
6060
ButtonPlainWithShadow(
6161
text: "Select",
6262
height: 48,
63-
shadowColor: wood_smoke,
64-
color: wood_smoke,
63+
shadowColor: type.buttonColor,
64+
color: type.buttonColor,
6565
callback: () {},
66-
textColor: white,
67-
borderColor: wood_smoke,
66+
textColor: type.buttonTextColor,
67+
borderColor: type.buttonColor,
6868
),
6969
SizedBox(
7070
height: 12,

lib/payment/payment_page_three.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ class _PaymentPageThreeState extends State<PaymentPageThree>
3232
number: "8765 7875 6759 4344"));
3333
_list.add(CardDetail(
3434
user_name: "Karthi",
35-
color: Colors.yellow,
35+
color: lightening_yellow,
3636
type: "Credit Card",
3737
number: "8765 7875 6759 4344"));
3838
_list.add(CardDetail(
3939
user_name: "Karthi",
4040
color: Colors.black,
4141
type: "Credit Card",
4242
number: "8765 7875 6759 4344"));
43+
_list.add(CardDetail(
44+
user_name: "Karthi",
45+
color: flamingo,
46+
type: "Credit Card",
47+
number: "8765 7875 6759 4344"));
4348
controller = AnimationController(
4449
reverseDuration: Duration(milliseconds: 300),
4550
duration: const Duration(milliseconds: 200),

lib/payment/payment_page_two.dart

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,33 @@ class _PaymentPageTwoState extends State<PaymentPageTwo>
2929
list.add("Get 24x7 Support");
3030
list.add("120+ Screens");
3131
list.add("120+ Screens");
32-
types.add(PaymentType(type: "POPULAR", list: list, color: flamingo));
3332
types.add(PaymentType(
34-
price: "34", type: "TRENDING", list: list, color: Colors.yellow));
35-
types.add(
36-
PaymentType(price: "34", type: "POPULAR", list: list, color: flamingo));
33+
type: "POPULAR",
34+
list: list,
35+
color: flamingo,
36+
buttonColor: wood_smoke,
37+
buttonTextColor: white));
38+
types.add(PaymentType(
39+
price: "34",
40+
type: "TRENDING",
41+
list: list,
42+
color: lightening_yellow,
43+
buttonColor: wood_smoke,
44+
buttonTextColor: white));
45+
types.add(PaymentType(
46+
price: "25",
47+
type: "POPULAR",
48+
list: list,
49+
color: Colors.black,
50+
buttonColor: white,
51+
buttonTextColor: Colors.black));
52+
types.add(PaymentType(
53+
price: "34",
54+
type: "CLASSIC",
55+
list: list,
56+
color: flamingo,
57+
buttonColor: wood_smoke,
58+
buttonTextColor: white));
3759
controller = AnimationController(
3860
reverseDuration: Duration(milliseconds: 300),
3961
duration: const Duration(milliseconds: 200),

lib/payment/payment_type.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ class PaymentType {
44
final String type;
55
final String price;
66
final Color color;
7+
final Color buttonColor;
8+
final Color buttonTextColor;
79
final List<String> list;
810

9-
const PaymentType({this.type, this.price, this.color, this.list});
11+
const PaymentType({this.type, this.price, this.color, this.list,this.buttonColor,this.buttonTextColor});
1012
}
1113

1214
class CardDetail {

0 commit comments

Comments
 (0)