In flutter how to remove thick frame around DataTable2()

31 Views Asked by At

In flutter I am trying to create a DataTable using DataTable2( ) Widget. By default it shows a horrible thick frame that occupies a lot of space. Anyone knows how to remove that? I have checked all properties but couldn't find anything relevant

enter image description here

=========== Update =============

I found the issue. It was the padding that was giving that was giving that effect - changed it to zero. The table still has a border, but much smaller.

return Card(
  child: Padding(
    padding: const EdgeInsets.all(14),
0

There are 0 best solutions below