Skip to content
pubscout

swipeable_button_view

0.0.2, released 5 years ago by an unverified publisher

A swipeable button widget with ripple animated pages.

WASM-ready
$ flutter pub add swipeable_button_view
Source repository

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.