today i was wondering if there is a way to handle the double click event in each row of a DataTable.
Does anyone knows?
2
wrap the widget with InkWell and there is a property named onDoubleTap with this you can achieve it like bellow
InkWell( onDoubleTap: (){}, )
You can use a Gesture detector with a double tap event:
DataCell( GestureDetector( onDoubleTap: () { print('Ouch!'); }, child: Text('Double tap this'), ), ),
Click here to cancel reply.
2
Answers
wrap the widget with InkWell and there is a property named onDoubleTap with this you can achieve it like bellow
You can use a Gesture detector with a double tap event: