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.

example/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'VibeTap Example',
      home: Scaffold(
        appBar: AppBar(title: const Text('VibeTap Demo')),
        body: Center(
          child: VibeTap(
            enableVibration: true,
            debounceDuration: const Duration(milliseconds: 700),
            onTap: () => debugPrint('Tapped safely!'),
            onLongPress: () => debugPrint('Long pressed!'),
            child: Container(
              padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
              decoration: BoxDecoration(
                color: Colors.blueAccent,
                borderRadius: BorderRadius.circular(8),
              ),
              child: const Text(
                'Tap Me',
                style: TextStyle(color: Colors.white, fontSize: 18),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
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