swipeable_button_view
0.0.2, released 5 years ago by an unverified publisher
A swipeable button widget with ripple animated pages.
What it does
Provides a customizable swipe-to-action button that triggers a ripple animation and handles completion states. It supports configurable colors, text styles, and icons for building interactive sliders like payment confirmations.
AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a slide-to-confirm or swipe-to-payment UI interaction
- You want a button that triggers a ripple animation upon sliding
Skip it when
- You require complex gesture physics beyond a simple horizontal slider
- You are building a standard tap-based button
Strengths
- Easy to integrate and configure with well-documented properties
- Includes customizable colors, text, and active states
Weaknesses
- Limited to horizontal swiping functionality
- Minimal maintenance history with only two early versions
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SwipeableButtonView(
buttonText: 'SLIDE TO PAYMENT',
buttonWidget: Container(
child: Icon(Icons.arrow_forward_ios_rounded,
color: Colors.grey,
),
),
activeColor: Color(0xFF009C41),
isFinished: isFinished,
onWaitingProcess: () {
Future.delayed(Duration(seconds: 2), () {
setState(() {
isFinished = true;
});
});
},
onFinish: () async {
await Navigator.push(context,
PageTransition(
type: PageTransitionType.fade,
child: DashboardScreen()));
setState(() {
isFinished = false;
});
},
)Alternatives
Packages that do the same job and could replace swipeable_button_view.
- smooth_page_indicator
Customizable animated page indicators with a set of built-in effects for Flutter.
83Compare - dismissible_page
Widget that lets you dismiss a page in any direction with custom gestures
89Compare - rounded_loading_button_plus
Animated button with loading, success and error states for Flutter.
50Compare - flutter_carousel_widget
A Flutter carousel with ten composable effects, autoplay, indicators, and accessibility.
86Compare