Open a15056478 opened 1 year ago
Hi, in fact you can achieve gradient color for a data cell (not header or checkbox) via putting a Container as a child of data cell, setting its alignment to centre (to stretch it) and setting decoration. Though in this case there will be vertical spaces between cells
I've added a new branch cell_decroation
, will work on it slowly, the idea is:
+1, really need this to my project
Hi, in fact you can achieve gradient color for a data cell (not header or checkbox) via putting a Container as a child of data cell, setting its alignment to centre (to stretch it) and setting decoration. Though in this case there will be vertical spaces between cells
I personally tested this workaround here. Of course it's possible, but when you are using some properties like columnSpacing
or horizontalMargin
, it may be kinda verbose to set zero
to them and handle in the code synchronizing these spaces between the headers and cells. So, it can simplify a lot.
columnSpacing
orhorizontalMargin
Though some peeople might want those fields affecting the backgrouds of cells... That's one of the tradeoffs I am not sure about. Either leave the widget as is and suggest going with Containers in cells and be expilict with each cell looks or introduce 10 more new fields to the widget that will be used to impilictly apply some (complicated) logic to the looks of differents cells across the widegst (column, row, header, fixed columns etc.)
We can use only color property for row, column and cell. But we can't achieve gradient for data cell, fixed row or column. This could be a good feature which makes the table look much better. Is there any way to achieve this functionality?