swipe_slider 0.0.1
swipe_slider: ^0.0.1 copied to clipboard
A customizable Flutter widget that enables swipe gestures for sliders. Perfect for swipe-to-confirm actions, onboarding screens, and interactive UI elements.
Swipe Slider #
Swipe Slider is a customizable Flutter widget that enables users to interact with a slider using swipe gestures. It's perfect for implementing swipe-to-confirm actions, onboarding screens, or any scenario where a swipeable slider enhances user experience.
Features #
- Customizable swipe slider widget for Flutter
- Supports horizontal swipe gestures
- Easy integration into any Flutter project
- Customizable appearance and behavior
- Callback for swipe completion
Getting Started #
Prerequisites #
- Flutter SDK (>=1.17.0)
- Dart SDK (>=3.8.0)
Add the package to your pubspec.yaml:
dependencies:
swipe_slider:
path: ./ # or use the published version when available
Run flutter pub get to install the package.
Usage #
Import the package and use the SwipeSlider widget in your Flutter app:
import 'package:swipe_slider/swipe_slider.dart';
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: SwipeSlider(
itemCount: poems.length,
itemBuilder: (BuildContext context, int index) {
return Container();
},
),
);
}
}
For more advanced usage and customization, see the documentation in lib/swipe_slider.dart.
Example #
You can find a complete example in the /example folder (add your example if not present).
Contributing #
Contributions are welcome! Please open issues or submit pull requests for bug fixes, features, or improvements.
License #
See LICENSE for details.
Additional Information #
- For questions or support, open an issue on the repository.
- Pull requests are reviewed and merged on a best-effort basis.
- Please follow the code of conduct and contribution guidelines.