swipee 0.1.0
swipee: ^0.1.0 copied to clipboard
Customizable Swipe button widget for Flutter
swipee #
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