我在我的flutter-web中有一个具有拖放功能的布局。拖动完成后,我希望通过API在列中显示有关被拖动元素的信息。
child: Container(
padding: const EdgeInsets.all(5.0),
margin: const EdgeInsets.only(top: 5.0, left: 5),
color: Colors.white,
child: Single Child ScrollView(
child: Column(
children: <Widget>[params],
),
)
// child:widgetListtile,
)我想通过以下方式更新参数
onDragCompleted:() {
params=fetchAttributes(id);
}请帮帮忙
发布于 2021-03-03 18:23:10
您可以使用GestureDetactor GestureDetector(onDragCompleted: params=fetchAttributes(id), child: )
https://stackoverflow.com/questions/66454936
复制相似问题