Open laterdayi opened 5 months ago
Cannot dynamically update table contents
ExpandableTableCell _buildCell(String content, {CellBuilder? builder}) { return ExpandableTableCell( child: builder != null ? null : GestureDetector( onTap: () { print('Cell $content tapped'); // update cell content setState(() { data['rows'][0]['columns'][0]['value'] = 'Updated'; }); }, child: DefaultCellCard( child: Center( child: Text( content, style: textStyle, ), ), ), ), builder: builder, ); }
How can you update it
Cannot dynamically update table contents