SwipingButton constructor
SwipingButton({
- Key? key,
- required String text,
- double height = 80,
- required VoidCallback onSwipeCallback,
- Color swipeButtonColor = Colors.amber,
- Color backgroundColor = Colors.black,
- EdgeInsets padding = const EdgeInsets.fromLTRB(0, 0, 0, 0),
- Color iconColor = Colors.white,
- TextStyle? buttonTextStyle,
- double? swipePercentageNeeded,
Implementation
SwipingButton({
Key? key,
required this.text,
this.height = 80,
required this.onSwipeCallback,
this.swipeButtonColor = Colors.amber,
this.backgroundColor = Colors.black,
this.padding = const EdgeInsets.fromLTRB(0, 0, 0, 0),
this.iconColor = Colors.white,
this.buttonTextStyle,
this.swipePercentageNeeded,
}) : super(key: key);