【发布时间】:2020-05-07 16:47:33
【问题描述】:
我激活了一个 showModalBottomScreen,在 GridView 中显示多个图像。 Here's my App Screen with BottomModalSheet on
所有这些图片都是可拖动的 Here's the Draggable Image
return Container(child: LongPressDraggable(data: img,feedback: img,child: img));
我需要我的应用程序做的是:当我开始拖动其中一个图像时,底部模式表应该关闭(弹出)并且我必须能够将可拖动对象提交到拖动目标上。但底部模态表关闭,我无法保留可拖动。
这是我使用的:
onDragStarted: ()=> Navigator.of(context).pop()
错误消息出现在我的调试控制台中:OPTS_INPUT:第一帧是在优化之前绘制的,所以跳过!
我该如何克服这个问题?
【问题讨论】: