spannablegrid-flutter icon indicating copy to clipboard operation
spannablegrid-flutter copied to clipboard

update _cells

Open sante85 opened this issue 5 years ago • 2 comments

Widget build(BuildContext context) { _updateCellsAndChildren(); return AspectRatio(...............

sante85 avatar May 07 '20 13:05 sante85

@ech89899, please watch this.

best regards

sante85 avatar May 07 '20 13:05 sante85

SpannableGrid(columns: 10, rows: 10, cells: _getCells()) ............ List<SpannableGridCellData> _getCells() { return result; }

............

setState(() { result.add(SpannableGridCellData( column: 1, row: 1, columnSpan: 1, rowSpan: 1, id: "asd", child: Text("asd") )); });

sante85 avatar May 07 '20 13:05 sante85