call_slider_button 2.0.0 copy "call_slider_button: ^2.0.0" to clipboard
call_slider_button: ^2.0.0 copied to clipboard

A beautiful, fully customizable Flutter widget that mimics an incoming call slider — swipe right to accept, swipe left to decline. Features smooth animations, haptic feedback, and extensive customizat [...]

2.0.0 - 2026-04-23 #

Added #

  • width parameter — set a fixed slider width instead of the default 80 % screen width.
  • dragThreshold parameter — configure the minimum drag distance to trigger accept/decline.
  • 100 % dartdoc coverage on all public API members.
  • Comprehensive widget tests.
  • Stricter analysis with flutter_lints and additional lint rules.

Changed #

  • Minimum SDK constraint raised to Dart between >=3.0.0 <4.0.0 / Flutter >=3.41.0.
  • Switched from package:lints to package:flutter_lints.
  • Haptic feedback is now triggered in the drag handler instead of inside build().
  • Removed no-op AnimatedOpacity wrappers that were using a hardcoded opacity: 1.0.
  • Extracted magic numbers into named constants for better readability.
  • Refactored widget internals into clean helper methods.
  • Improved README with proper markdown formatting, badges, and up-to-date parameter table.

Fixed #

  • Animation listener leak — listeners are now properly removed after the reset animation completes.
  • MediaQuery.of(context).size replaced with MediaQuery.sizeOf(context) for better rebuild performance.

1.1.1 - 2025-07-17 #

Added #

  • Dartdoc-style comments (using ///) to public API members.

1.1.0 - 2025-07-01 #

Added #

  • Custom widget support for acceptIcon and declineIcon.
  • New color options: borderColor, callBtnBackgroundColor.
  • backgroundColor replaces idleBackgroundColor for better clarity.
  • Improved documentation and code cleanup.

Fixed #

  • More consistent animation logic and border handling.

1.0.0 - 2025-06-15 #

  • Initial release.
  • CallSliderButton widget with full customization.
5
likes
150
points
164
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A beautiful, fully customizable Flutter widget that mimics an incoming call slider — swipe right to accept, swipe left to decline. Features smooth animations, haptic feedback, and extensive customization options.

Repository (GitHub)
View/report issues

Topics

#widget #slider #call #ui #animation

License

MIT (license)

Dependencies

flutter

More

Packages that depend on call_slider_button