custom_long_tap 0.0.2
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
      
    },
    
  ),    
  
0
likes
80
pub points
15%
popularity

Publisher

Unknown

A GestureDetector with custom duration

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_long_tap