bouncing_call_slider 1.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A customizable Flutter widget that mimics an incoming call slider with bounce animation, swipe-to-accept or decline, and haptic feedback. Ideal for call UI.

📞 Bouncing Call Slider

A beautiful and highly customizable Flutter widget that mimics an incoming call slider — swipe up to answer or down to decline with bouncing, animated, and haptic feedback effects.

Perfect for call UI interfaces, action confirmation prompts, or interactive in-app communication designs.


✨ Features

  • 🟢 Swipe up to accept, 🔴 swipe down to decline
  • 🎯 Bouncing animation on idle for attention-grabbing effect
  • 🎉 Haptic feedback and subtle rotation effect
  • 💡 Custom icons, text, colors, and dimensions
  • 🛠️ Fully themeable and responsive
  • 📱 Supports both Android & iOS

📷 Demo


🚀 Getting Started

Add this package to your project by copying the source code or importing it into your app. If published to pub.dev:

dependencies:
  call_slider_button: ^1.0.0

Then run:

dart pub get

💡 Usage

import 'package:flutter/material.dart';
import 'package:call_slider_button/bouncing_call_slider.dart';

BouncingCallSlider(
  onAccept: () => print("Accepted!"),
  onDecline: () => print("Declined!"),
  acceptText: 'Swipe up to answer',
  declineText: 'Swipe down to decline',
);

⚙️ Customization Parameters

ParameterTypeDescriptionDefault
onAcceptVoidCallbackCalled when user slides upRequired
onDeclineVoidCallbackCalled when user slides downRequired
acceptTextStringAccept instruction text'Swipe up to answer'
declineTextStringDecline instruction text'Swipe down to decline'
textStyleTextStyle?Text style for both labelsnull
acceptTextColorColorColor of accept label textColors.grey
declineTextColorColorColor of decline label textColors.grey
iconColorAcceptColorIcon color on acceptColors.green
iconColorDeclineColorIcon color on declineColors.red
callBtnBackgroundColorColorButton background colorColors.white
acceptIconWidget?Custom icon for acceptIcons.call
declineIconWidget?Custom icon for declineIcons.call_end
heightdoubleTotal height of the widget200
widthdoubleWidth of the call button70
iconSizedoubleSize of the icon inside the button35
buttonSizedoubleDiameter of the call button70

📂 Example App

You can find a full example inside the example/ folder.

To run it:

cd example
flutter run

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

❤️ Contributing

  1. Fork the repo
  2. Create a new branch: git checkout -b feature/YourFeature
  3. Commit your changes: `git commit -m 'Add YourFeature'
  4. Push to the branch: git push origin feature/YourFeature
  5. Open a Pull Request