skip to Main Content

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

Answers


  1. wrap the widget with InkWell and there is a property named onDoubleTap with this you can achieve it like bellow

    InkWell(
     onDoubleTap: (){},
    )
    
    Login or Signup to reply.
  2. You can use a Gesture detector with a double tap event:

            DataCell(
              GestureDetector(
                onDoubleTap: () {
                  print('Ouch!');
                },
                child: Text('Double tap this'),
              ),
            ),
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search