0 purchases
custom long tap
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
},
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.