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

outdated

A customizable button widget that can be triggered by swiping.

Swipeable button #

A swipeable button widget.

Features #

  • Customizable size: you can manually specify the height of the button and the width of the thumb.

  • Make it either triggerable one time only or infinite times.

  • The label shown on the button can be any widget

  • It can match the style of your application: you can customize the color of the button, the color of the thumb and the border radius of the button.

Live Preview #

You can check the example page here!

Getting started #

This package has been built for Flutter.

Add swipeable_button: ^0.0.1 to your pubspec.yaml dependencies.

You need to import the library in every file that uses this package by using

import 'package:swipeable_button/swipeable_button.dart';

Usage #

Place the button wherever you want by creating a SwipeableButton widget.

SwipeableButton(
  height: 40.0,
  minThumbWidth: 40.0,
  oneTime: true,
  label: const Text("Delete"),
  color: Colors.red,
  thumbColor: Colors.orange,
  borderRadius: BorderRadius.circular(5.0),
  onSwipe: () {
    // Perform delete action.
  },
)
3
likes
0
points
375
downloads

Publisher

verified publisheromnicron.it

Weekly Downloads

A customizable button widget that can be triggered by swiping.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on swipeable_button