GestureDetector
имеет onLongPress
& onLongPressEnd
методы:
GestureDetector(
onLongPress: () {
print('long press start');
},
onLongPressEnd: (LongPressEndDetails longPressEndDetails) {
print('long press end');
// Call Navigator.pop(context); or Navigator.of(context).pop();
},
child: Container(child: Text('Click me'),
)