s_ink_button/s_ink_button library

A Flutter package providing a customizable ink splash button with haptic feedback.

This library exports SInkButton, a button widget that provides smooth ink splash animations originating from the tap position, along with optional haptic feedback and hover effects.

Features

  • Ink splash animation from tap position
  • Configurable haptic feedback
  • Hover effects for desktop/web
  • Scale animation on press
  • Support for single tap, double tap, and long press gestures

Example

SInkButton(
  onTap: (position) => print('Tapped at $position'),
  child: Container(
    padding: EdgeInsets.all(16),
    child: Text('Press me'),
  ),
)

Classes

SInkButton
A customizable button widget with ink splash animation and haptic feedback.

Enums

HapticFeedbackType
Defines the type of haptic feedback to trigger when the button is tapped.