flutter - 使用溢出框移动Widget后,原来的手势会丢失。
问题描述
OverflowBox(
maxHeight: Screens.height * 0.4,
// alignment: Alignment.topCenter,
alignment: animation.value,
child: Container(
decoration: BoxDecoration(
color: Colors.white,
boxShadow: boxShadow,
borderRadius: BorderRadius.vertical(
top: Radius.circular(30.w),
),
),
padding: EdgeInsets.all(30.w).copyWith(top: 0, bottom: bottomButtonPadding),
child: Column(
children: <Widget>[
PostButton(
onTap: () {
//do something
},
child: Padding(
padding: EdgeInsets.symmetric(vertical: 15.h),
child: Glide.loadAssetIcon('icon_map_touch.png'),
),
),
widget.child,
],
),
),
)
动画完成后,OnTap
无效。有人说overlay
可以解决这个问题,但是我还没有找到使用方法。有谁知道解决方案?
解决方案
推荐阅读
- amazon-web-services - 当唯一的区别是标签时,如何在两个 s3 存储桶之间同步对象
- javascript - 如何获取样式表中设置的css变量值?
- aframe - AFRAME:缺少运动捕捉组件 autoSaveFile
- android - CodenameOne - 使用 android.buildToolsVersion=27 构建时,Android 应用程序无法启动
- python - 升级 pip 18 在终端显示失败,但在 pycharm 中成功
- mixpanel - 拒绝加载脚本,因为它违反了以下内容安全策略指令:script-src self https:unsafe-eval unsafe-inline
- jenkins - Jenkins 2 Job:仅处理下载中更改的文件
- lerna - 将 Lerna 与 Yarn 工作区一起使用有什么优势吗?
- jquery - Symfony - 使用 Doctrine 创建复杂的查询
- php - MySQL选择时间戳col作为秒