我有一个AnimatedContainer,当我轻按容器时,该容器具有打开/关闭动画,但底部有38像素的错误溢出。
在此视频中显示:
这是我的代码:
Column(
children: <Widget> [
GestureDetector(
child: Container(
duration: duration,
child: all the content
),
onTap: () {
is_opened = !is_opened;
}
)
AniamtedOpacity(
duration: duration,
opacity: is_opened ? 1 : 0
child: Container(
child: Row(
children: <Widget>[
//Icons and texts
],
),
),
),
],
)
感谢您的帮助
没有代码,很难解决这个问题,但是尝试执行以下操作
在由动画容器和容器组成的窗口小部件上使用扩展。