custom_long_tap 0.0.2 copy "custom_long_tap: ^0.0.2" to clipboard
custom_long_tap: ^0.0.2 copied to clipboard

A GestureDetector with custom duration

long_press_widget #

A GestureDetector where you can set the Duration for LongPress callback

Getting Started #

Installing: #

Add this to pubspec.yaml

dependencies:

custom_long_tap: ^0.0.1

Import this:

import 'package:custom_long_tap/custom_long_tap.dart';

Example:

CustomLongTap(

    widget: Container(
    
      child: Text('Press ME!'),
      
    ),
    
    duration: Duration(seconds: 5),
    
    onShortTap: () {
    
      // do something on normal press
      
    },
    
    onLongTap: () {
    
      // do something on long press
      
    },
    
  ),    
1
likes
20
pub points
20%
popularity

Publisher

unverified uploader

A GestureDetector with custom duration

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_long_tap