I need a widget to receive the onTap
event and is draggable.
child: GestureDetector(
onTap: _setVisibleSelect(),
child: Draggable<Color>(
data: Color(0x000000ff),
child: Image.asset('assets/photo.png', color: Colors.yellow, width: 60, height: 60,),
feedback: Image.asset('assets/photo.png', color: Colors.yellow, width: 60, height: 60,),
childWhenDragging: Container(),
),
I can see _setVisibleSelect()
doesn't work when onTap
but Dragging.
How can I use two event together?
User contributions licensed under CC BY-SA 3.0