Applies only to boxes with rectangular shapes.
Box decoration radius flutter. If non null the corners of this box are rounded by this borderradius. The body of the box is painted in layers. Ask question asked 2 years. Use transparent background color for the modalbottomsheet and give separate color for box decoration.
The shape or the borderradius won t clip the children of the decorated container if the clip is required insert a clip widget e g cliprect cliprrect clippath as the child of the container. All canvascolor of flutter widgets will change to color transparent please try to open drawer. The shape of the box can be a circle or a rectangle. Ignored if shape is not boxshape rectangle.
The shape of the box can be a circle or a rectangle. If it is a rectangle then the borderradius property controls the roundness of the corners. The bottom most layer is the color. The pink box now has rounded borders but that s all you see.
Steps to reproduce run the provided code. The box has a border a body and may cast a boxshadow. Flutter corner radius with transparent background. A dashed container plugin for flutter image assets using box decoration part 3 flutter tutorial planets flutter creating a planet card whats people lookup in this blog.
The boxdecoration class provides a variety of ways to draw a box. The widgets are now obscured. You ll see widgets on a pink background.