buildReferralHistoryTableRow method

TableRow buildReferralHistoryTableRow(
  1. String fullname,
  2. String date,
  3. String level,
  4. String profit,
  5. int index,
)

Implementation

TableRow buildReferralHistoryTableRow(
    String fullname, String date, String level, String profit, 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 == 5 ? 16 : 0),
          bottomRight: Radius.circular(index == 5 ? 16 : 0),
        )),
    children: [
      Padding(
        padding: const EdgeInsets.all(15.0),
        child: Image.asset("assets/home/mock_agent4.png",
        width: 32,
        height: 32,),
      ),
      Padding(
        padding: const EdgeInsets.all(12.0),
        child: Text(
          fullname,
          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: Text(
          level,
          style: const TextStyle(
              fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
        ),
      ),
      Padding(
        padding: const EdgeInsets.all(12.0),
        child: Text(
          profit,
          style: const TextStyle(
              fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
        ),
      ),
    ],
  );
}