Hello Readers! In this article, We are going to learn – How we can apply the Shape properties in our Container() Widget?
Container
- A convenience widget that combines common painting, positioning, and sizing widgets.
- It basically contains different widgets into one widget over which you can give padding, size, position, etc.
A Container holds many properties in itself, such as margin, padding, height, width, shape, color, alignment, and many more.
But in this article, we are going to talk about only – shape property.
In Container shape property applied inside decoration property.
Center(
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.red,
),
height: 100,
width: 100,
),
),
I am passionate about learning and teaching new technology. Here You will get all information about Flutter, Laravel and New Technologies.