buildTableCell method
Implementation
Widget buildTableCell({Widget? widget, String? text, required T item}) {
return TableCell(
child: InkWell(
onTap: onCellClicked == null
? null
: () {
onCellClicked!(item);
},
child: Padding(
padding: EdgeInsets.fromLTRB(10.dp, 12.dp, 0, 12.dp),
child: text == null
? widget
: Text(
text,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 14.dp,
fontWeight: FontWeight.w400,
color: ColorHelper.neutralText,
),
),
),
),
);
}