s_ink_button 3.1.0
s_ink_button: ^3.1.0 copied to clipboard
Built from scratch InkWell alternative, designed for performance, without needing to be wrapped by a Material widget.
3.1.0 #
s_packagesdependency upgraded to ^3.1.0s_ink_buttonsplash animation enhancement:- Updated splash rendering to a radial-gradient style so the splash is no longer a flat filled circle.
- Added a soft fade in the splash interior (center) for a cleaner ink effect.
- Added a smooth fade on the outer splash edge (border) for more natural ripple falloff.
3.0.0 #
s_packagesdependency upgraded to ^3.0.0
2.0.0 #
- package no longer holds the source code for it, but exports/exposes the
s_packagespackage instead, which will hold this package's latest source code. - The only future changes to this package will be made via
s_packagespackage dependency upgrades, in order to bring the new fixes or changes to this package - Added
onHoverandonFocusChangecallbacks - Added
hoverColorfor custom hover state color - Added
splashDurationfor custom splash animation timing
1.1.0 #
- HitTestBehavior? hitTestBehavior parameter added to determine whether the button responds to touch events and how it interacts with other widgets in the hit test hierarchy.
1.0.8 #
- Fixed critical bug: When
onLongPressStartcallback was provided (non-null), the button would immediately pop back to its original scale when long press was detected. This was caused by a race condition inGestureDetector's gesture arena resolution whereonTapCancelwould fire before the long press state was properly set. The fix ensures_isLongPressingand_isPressedare set synchronously beforesetStateto prevent the cancellation from resetting the visual state.
1.0.7 #
- Fixed bug:
onLongPressStartandonLongPressEndcallbacks were overriding internal state management, causing the button to lose its pressed state (scale/splash) when these callbacks were provided. Now, internal logic always runs first to ensure consistent visual feedback.
1.0.6 #
- Fixed visual bug where the button would momentarily pop back to its original scale when a long press gesture was detected. The button now correctly maintains its pressed state throughout the gesture transition.
1.0.5 #
- Fixed issue: Handling gesture cancellations correctly when overlays like SnackBars appear, ensuring the long-press state explicitly overrides the cancellation and resets the animation state: in other words, the button now correctly maintains its pressed state (splash and scale) when a SnackBar is shown during a long press.
1.0.4 #
- updated README
1.0.3 #
- updated README
1.0.2 #
- updated README
1.0.1 #
- updated README
- updated Documentation and Dart files convention
1.0.0 - 2025-12-11 #
- Initial release of s_ink_button
- Features: lightweight splash/hover animation without the need for a Material widget around the child, configurable splash color and radius, haptic feedback support, long press and double tap events, circle button support, and improved performance compared to InkWell for some layouts.
- Added example Flutter app with basic and advanced examples in
example/ - Added widget tests in
test/that validate tap, double tap and long-press handlers - Included example screenshot asset and updated
README.mdwith install and usage examples - Added MIT license and
.pubignore/.gitattributes to prepare for publishing