buildTableCell method

Widget buildTableCell({
  1. Widget? widget,
  2. String? text,
  3. Color? textClr,
})

Implementation

Widget buildTableCell({Widget? widget, String? text, Color? textClr}) {
  return TableCell(
    child: InkWell(
      onTap: onCellClicked,
      child: Padding(
        padding: const EdgeInsets.fromLTRB(8, 24, 4, 14),
        child: text == null
            ? widget
            : Text(
                text,
                overflow: TextOverflow.ellipsis,
                style: TextStyle(
                  fontSize: 11.dp,
                  fontWeight: FontWeight.w400,
                  color: textClr,
                ),
              ),
      ),
    ),
  );
}