I am trying to replicate the list view below. It's a list view(or containers), that you can select, and it will make the border colored and apply a background with no padding between the containers, but there is a thing, they share the same divider line. I have already given a shot on this, but didn't quite work as I expected. Because the dividers lines got doubled (thicker), and it's kinda annoying.

**What I want:**

[![List View that I am trying to make](https://i.stack.imgur.com/nu4FG.jpg)](https://i.stack.imgur.com/nu4FG.jpg)

**EDIT:**

They are selectable containers, so you can click on each one and it will highlight the borders, so if you are thinking of making the middle container one with borders only at the right and left side, it will not work because you will not be able to highlight the top and bottom border.

**See the example below:**

[![All the three containers can be selected, and they need to share the same divider line](https://i.stack.imgur.com/VGEnE.jpg)](https://i.stack.imgur.com/VGEnE.jpg)

I was trying to make the first container with the bottom border transparent ( `bottom: BorderSide(width: 1, color: Colors.transparent),` ), so it would not get doubled. But it seems that you can not have a radius container in flutter with different border colors.

**What I have made:**

[![List view that I have created](https://i.stack.imgur.com/f2qUW.png)](https://i.stack.imgur.com/f2qUW.png)

```
Container(
          height: 100,
          width: 200,
          decoration: BoxDecoration(
            color: Colors.blue,
            borderRadius: BorderRadius.only(
              topRight: Radius.circular(20),
              topLeft: Radius.circular(20),
            ),
            border: Border.all(width: 1, color: Colors.red),
          ),
        ),
        Container(
          height: 100,
          width: 200,
          decoration: BoxDecoration(
              border: Border.all(width: 1, color: Colors.black)),
        ),
        Container(
          height: 100,
          width: 200,
          decoration: BoxDecoration(
            borderRadius: BorderRadius.only(
              bottomRight: Radius.circular(20),
              bottomLeft: Radius.circular(20),
            ),
            border: Border.all(width: 1, color: Colors.black),
          ),
        ),

```