ave wrapped the Dividers with Containers and trying to provide border radius to clipoff the diveder edge. Edges are not circular as expected.
Container(
width: 135,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(100),
),
child: Divider(
height: 25
thickness: 5,
color: Color(0xFFFFFFFF),
),
),
position: absolute;
width: 134px;
height: 5px;
left: calc(50% - 134px/2 + 0.5px);
bottom: 8px;
/* #White */
background: #FFFFFF;
border-radius: 100px;
2
Answers
You can try to wrap
Divider
inContainer
and then do the clipping things but it would be great if you directly create aContainer
that behaves likeDivider
like this.You can use this divider widget:
Just simply add clipBehavior: Clip.hardEdge in Container as shown below .