buildAccountHolderTableRow method

TableRow buildAccountHolderTableRow(
  1. String title,
  2. String value,
  3. int index
)

Implementation

TableRow buildAccountHolderTableRow(String title, String value, 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(12.0),
        child: Text(
          title,
          style: const TextStyle(
              fontSize: 12,
              fontWeight: FontWeight.w400,
              color: ColorHelper.grey02),
        ),
      ),
      Padding(
        padding: const EdgeInsets.all(12.0),
        child: Text(
          value,
          style: const TextStyle(
              fontSize: 12, fontWeight: FontWeight.w400, color: Colors.black),
        ),
      ),
    ],
  );
}