I am new to table widget and I read the documentation but I couldn't find a way to make the table border slightly curved , so is there something I am missing ?
Asked
Active
Viewed 6,498 times
2 Answers
13
Wrap your table with a container and remove table border if any:
Container(
decoration: BoxDecoration(
border: Border.all(
width: 1,
),
borderRadius: BorderRadius.all(Radius.circular(10)),
),
)
If you need to display the inner borders:
Table(
border: TableBorder.symmetric(
inside: BorderSide(width: 1),
),
)

Sami Haddad
- 1,356
- 10
- 15
-
thanks , but I need a separator between each cell and column not only outline border – Sarah Jun 14 '20 at 11:36
-
You can still use the inner border, I'll update the answer for this. – Sami Haddad Jun 14 '20 at 11:48
-
How do I add additional padding for top and bottom on dynamic content? The rounded corners cut into cells – Anton Duzenko Jan 05 '21 at 10:34
-
@AntonDuzenko you can use the `padding` property in the `Container`. – Sami Haddad Jan 07 '21 at 14:10
0
Update 2022 For someone still looking for the answer
DataTable(
border: TableBorder(borderRadius: BorderRadius.circular(20)),
. . .

Vinamra Jaiswal
- 603
- 7
- 15