swipee 0.1.0 copy "swipee: ^0.1.0" to clipboard
swipee: ^0.1.0 copied to clipboard

Customizable Swipe button widget for Flutter

swipee #

Version Generic badge

Customizable Swipe Button for flutter

Screenshots #

How to use #

dependencies:
  swipee: <latest_version>
import 'package:swipee/swipee.dart';

     // basic usage
    Swipee(
        label: "Swipe Me",
        onSwipe: () {
            EasyLoading.showSuccess('Swiped!');
        }),

    // customize track and button
    Swipee(
        trackWidth: 250,
        trackHeight: 30,
        buttonWidth: 80,
        buttonHeight: 50,
        color: Colors.red,
        trackColor: Colors.amber,
        onSwipe: () {
        EasyLoading.showSuccess('Swiped!');
        },
        trackChild: const Text('> > > > >', style: TextStyle(fontSize: 20)),
        child: const Icon(Icons.arrow_forward),
    )

    // vertical swipe
    Swipee(
        axis: Axis.vertical,
        width: 50,
        height: 100,
        trackWidth: 30,
        trackHeight: 60,
        buttonWidth: 40,
        buttonHeight: 40,
        radius: 0,
        label: "GO!",
        color: Colors.blue,
        trackColor: Colors.indigo[100],
        onSwipe: () {
        EasyLoading.showSuccess('Swiped!');
        },
    )


TODOs #

  • Material UI
  • Unit Testing
  • RTL and TTB swiping
  • More customisation options

Buy me a Coffee #

ETH: alexay.eth

2
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

Customizable Swipe button widget for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on swipee