how do I add a circular border to table in flutter

Viewed 3948

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 ?

1 Answers

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),
  ),
)
Related