vibe_tap 0.0.4 copy "vibe_tap: ^0.0.4" to clipboard
vibe_tap: ^0.0.4 copied to clipboard

A Flutter widget that adds vibration (haptic feedback) and debounce protection to taps. Prevents multiple quick taps while providing smooth haptic interaction.

vibe_tap #

A lightweight Flutter plugin that provides customizable vibration (haptic) feedback for taps, gestures, and UI interactions.
Easily enhance your appโ€™s user experience with subtle, consistent haptic feedback.


๐Ÿš€ Features #

  • ๐Ÿ”น Trigger vibration on tap, press, or gesture
  • ๐Ÿ”น Customize vibration intensity and duration
  • ๐Ÿ”น Works across Android and iOS
  • ๐Ÿ”น Simple and developer-friendly API

๐Ÿง  Getting Started #

Add this to your pubspec.yaml:

dependencies:
  vibe_tap: ^0.0.2

Then import it:

import 'package:vibe_tap/vibe_tap.dart';

โšก Usage Example #

import 'package:flutter/material.dart';
import 'package:vibe_tap/vibe_tap.dart';

class MyButton extends StatelessWidget {
  const MyButton({super.key});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () {
        VibeTap.light(); // Trigger a light vibration
      },
      child: Container(
        padding: const EdgeInsets.all(16),
        decoration: BoxDecoration(
          color: Colors.blue,
          borderRadius: BorderRadius.circular(12),
        ),
        child: const Text(
          'Tap Me',
          style: TextStyle(color: Colors.white),
        ),
      ),
    );
  }
}

๐ŸŽ›๏ธ Available Vibration Types #

VibeTap.light();
VibeTap.medium();
VibeTap.heavy();
VibeTap.custom(duration: Duration(milliseconds: 300));

๐Ÿงพ License #

MIT License.
See the LICENSE file for details.


โค๏ธ Contributing #

Pull requests are welcome!
If you encounter any issues, please open an issue.

1
likes
150
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that adds vibration (haptic feedback) and debounce protection to taps. Prevents multiple quick taps while providing smooth haptic interaction.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on vibe_tap