buildTransactionHistoryTableRow method
Implementation
TableRow buildTransactionHistoryTableRow(
String id, String date, String miles, String type, int index) {
return TableRow(
decoration: BoxDecoration(
color: index != 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 == 0 ? 0 : 16),
bottomRight: Radius.circular(index == 0 ? 0 : 16),
)),
children: [
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
id,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: index == 0 ? ColorHelper.grey02 : Colors.black),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
date,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: index == 0 ? ColorHelper.grey02 : Colors.black),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
miles,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: index == 0 ? ColorHelper.grey02 : Colors.black),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
type,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: index == 0 ? ColorHelper.grey02 : Colors.black),
),
),
],
);
}