我在这里指的是这个问题:Drawing a line Between Widgets已经解决,但是我还有其他问题。
我想使“堆栈”窗口小部件中的行可单击,但是使用 GestureDetector 窗口小部件是不可能的。
您对我有什么解决方案吗?非常感谢您的回答!
屏幕截图如下:
最佳答案
试试这个:-
GestureDetector(
onTap: (){
//do your code on click
},
child: Container(
width: 20,
height: double.infinity,
color: Colors.grey,
),
)
关于flutter - 在小部件之间画一条线并使线可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63355479/