使正方形透明的一部分-Flutter

I want to achieve the scanner view as given in the picture. I've used BoxDecoration to design square with rounded corners.

            Center(
                  child: Container(
                    width: BarReaderSize.width,
                    height: BarReaderSize.height,
                    decoration: BoxDecoration(
                        borderRadius: BorderRadius.circular(20),
                        border: Border.all(color: Colors.white, width: 3)),
                  ),
                )

enter image description here

有人可以帮忙吗?

评论