buildTableCell method

Widget buildTableCell(
  1. String itemValue, {
  2. Widget? optional,
})

Implementation

Widget buildTableCell(String itemValue,{Widget? optional}) {
  return TableCell(
      child: Padding(
          padding: const EdgeInsets.fromLTRB(8, 0, 4, 0),
          child: SizedBox(
            height: 50.dp,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.start,
              mainAxisSize: MainAxisSize.min,
              children: [
                Text(itemValue.toUpperCase(),
                    overflow: TextOverflow.ellipsis,
                    style: TextStyle(
                        fontSize: 12.dp,
                        fontWeight: FontWeight.w500,
                        color: ColorHelper.textDarkMed)),
                if(optional!=null)
                10.SpaceY,
                optional ?? const SizedBox()
              ],
            ),
          )));
}