一,我们先上图。这个是我们最终要的效果。Flutter能不能办到呢?
二,结果:我们Flutter写完之后的
三,代码使用
//关键代码
var headfont = WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, c: ExcleColour.WHITE);
WritableCellFormat headerWritableCellFormat = WritableCellFormat(headfont)
.setExAlignment(ExAlignment.CENTRE)
.setVerticalExAlignment(VerticalExAlignment.CENTRE)
.setExBorder(ExBorder.ALL, ExBorderLineStyle.THIN,
colour: ExcleColour.GREEN)
.setBackground(ExcleColour.DARK_PURPLE);
List titleCellList = new List<WritableSheet>();
WritableSheet sheet1 = WritableSheet.Builder()
.addCell(Label(0, 3, "单位估价", getOneCell2()))
.setRowView(3, 350)
.mergeCells(0, 3, 0, 4);
WritableSheet sheet2