Edi*_*din 3 flutter flutter-layout flutter-animation
我有一个 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
],
),
),
),
],
)
Run Code Online (Sandbox Code Playgroud)
谢谢您的帮助
| 归档时间: |
|
| 查看次数: |
2280 次 |
| 最近记录: |