2

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 ?

Sarah
  • 1,195
  • 10
  • 17

2 Answers2

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
0

Update 2022 For someone still looking for the answer

DataTable(
        border: TableBorder(borderRadius: BorderRadius.circular(20)),
        . . .
Vinamra Jaiswal
  • 603
  • 7
  • 15