title: Make part of square transparent- Flutter
body: <p>I want to achieve the scanner view as given in the picture. I've used <code>BoxDecoration</code> to design square with rounded corners.</p>
  
  <pre><code>            Center(
                    child: Container(
                      width: BarReaderSize.width,
                      height: BarReaderSize.height,
                      decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(20),
                          border: Border.all(color: Colors.white, width: 3)),
                    ),
                  )
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/jeFUG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jeFUG.png" alt="enter image description here"></a></p>
  
  <p>Can someone help ?</p>