tableSubHeaders function

Widget tableSubHeaders(
  1. List<String> subHeaderTile,
  2. double width,
  3. double height, {
  4. double textSize = 12,
})

Implementation

Widget tableSubHeaders(List<String> subHeaderTile, double width, double height,
    {double textSize = 12}) {
  return Row(
    children: [
      ...subHeaderTile.map((subEle) {
        return Container(
          width: width,
          height: height,
          decoration: BoxDecoration(
            color: ReportTableUtils.headerColor,
            border: Border(
              bottom: BorderSide(color: ReportTableUtils.headerCellBorderColor),
              right: BorderSide(color: ReportTableUtils.headerCellBorderColor),
              left: BorderSide(color: ReportTableUtils.headerCellBorderColor),
            ),
          ),
          alignment: Alignment.center,
          child: Text(
            subEle,
            style: TextStyle(
              fontWeight: FontWeight.bold,
              color: ReportTableUtils.headerTextColor,
              fontSize: ReportTableUtils.getHeaderSize(textSize),
            ),
          ),
        );
      }),
    ],
  );
}