call_slider_button 3.0.0
call_slider_button: ^3.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 [...]
3.0.0 - 2026-10-15 #
Breaking #
- Migrated from the SDK's
package:flutter/material.dartto the standalonematerial_uipackage (Flutter's decoupled Material library), usingdart fix --code=migrate_design_widgets. - Minimum versions raised to Flutter
>=3.47.0/ Dart^3.13.0, as required bymaterial_ui.
The public API is unchanged and exposes no Material types, so the widget works
in both migrated (material_ui) apps and apps still on the SDK Material
library.
Added #
- Screen-reader support: the slider is exposed as a single semantics node with Accept / Decline custom actions, so TalkBack and VoiceOver users can answer or reject without dragging.
- Full Android & iOS example app (
example/) generated from the latest Flutter templates (AGP 9, Kotlin 2, Java 17, iOS 15 + UIScene lifecycle) using a Material 3ColorScheme.fromSeedtheme.
Changed #
- Verified against Flutter 3.47 / Dart 3.13 with Material 3 (the default).
- Example moved to
example/lib/main.dart.
Fixed #
- Removed the incorrect
>=3.0.0Flutter constraint from 2.0.x: the widget usesColor.withValues(Flutter 3.27+), so older projects could install a version that failed to compile. - Starting a new drag while the reset animation is running no longer snaps the button back to center.
- Reset animation now uses a single persistent listener (no per-drag listener registration).
backgroundColordocumentation now states the real default (0x33FFFFFF).
2.0.1 #
Changed #
- Package now supports
Flutter 3.0.0and all later versions. - Ensures wider support across older Flutter 3.x projects.
2.0.0 - 2026-04-23 #
Added #
widthparameter — set a fixed slider width instead of the default 80 % screen width.dragThresholdparameter — configure the minimum drag distance to trigger accept/decline.- 100 % dartdoc coverage on all public API members.
- Comprehensive widget tests.
- Stricter analysis with
flutter_lintsand additional lint rules.
Changed #
- Minimum SDK constraint raised to Dart between
>=3.0.0 <4.0.0/ Flutter>=3.41.0. - Switched from
package:lintstopackage:flutter_lints. - Haptic feedback is now triggered in the drag handler instead of inside
build(). - Removed no-op
AnimatedOpacitywrappers that were using a hardcodedopacity: 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).sizereplaced withMediaQuery.sizeOf(context)for better rebuild performance.
1.1.0 - 2025-07-01 #
1.0.0 - 2025-06-15 #
- Initial release.
CallSliderButtonwidget with full customization.