gesture_detector_custom_long_tap_duration

A GestureDetector where you can set the Duration for LongPress callback

Example:

CustomLongTap(

    widget: Container(
    
      child: Text('Press ME!'),
      
    ),
    
    duration: Duration(seconds: 5),
    
    onShortTap: () {
    
      // do something on normal press
      
    },
    
    onLongTap: () {
    
      // do something on long press
      
    },
    
  ),    
  

Libraries

gesture_detector_custom_long_tap_duration