I have been trying to make rounded corners in an AnimatedContainer
. So I wrote this code :
return Center (
child: Column (
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget> [
AnimatedContainer (
duration: Duration(milliseconds: 200),
color: Colors.white,
height: _isContainerVisible ? 500.0 : 0.0,
width: _isContainerVisible ? 300.0 : 0.0,
decoration: BoxDecoration (
borderRadius: BorderRadius.circular(25.0)
),
)
]
)
);
for some reason I cannot make the corner rounded. Also I am getting an error message for this. Is there a way to make the corners rounded?