我一直在尝试在AnimatedContainer
. 所以我写了这段代码:
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)
),
)
]
)
);
由于某种原因,我无法使角落变圆。我也收到了一条错误消息。有没有办法让角落变圆?