I'm trying to create Oval shape by using Radius.circular
but it looks like circular shape and I have also tried to change Radius.elliptical
but still getting a different shape.
Expanded(
flex: 13,
child: Container(
height: 100,
width:100,
margin: EdgeInsets.only(top: 40,left: 40,right: 40),
decoration: new BoxDecoration(
color: MyColors.colorPrimary,
border: Border.all(color: Colors.black, width: 0.0),
borderRadius:
new BorderRadius.all(Radius.elliptical(90,45)),
),
child: Text(' '),
),
I want this
but getting this
I assume you are using a
Column
orRow
widget as parent and usingExpanded
your child is trying to expand to the horizontal.Add an
Align
orCenter
widget as a parent of yourContainer
and it should work: