buildTransactionHistoryTableRow method
Implementation
TableRow buildTransactionHistoryTableRow(String id, String date,
String commissiontype, String commissionamount, String type, int index) {
return TableRow(
decoration: BoxDecoration(
color: index % 2 == 0 ? Colors.white : ColorHelper.lightBg02,
borderRadius: BorderRadius.only(
// topLeft: Radius.circular(index == 0 ? 16 : 0),
// topRight: Radius.circular(index == 0 ? 16 : 0),
bottomLeft: Radius.circular(index == 8 ? 16 : 0),
bottomRight: Radius.circular(index == 8 ? 16 : 0),
)),
children: [
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
id,
style: const TextStyle(
fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
date,
style: const TextStyle(
fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
commissiontype,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: commissiontype == "Neo Miles"
? ColorHelper.gradient2
: ColorHelper.gradient1),
),
Text(
commissionamount,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: commissiontype == "Neo Miles"
? ColorHelper.gradient2
: ColorHelper.gradient1),
),
],
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
type,
style: const TextStyle(
fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
),
),
],
);
}