Swipepanel constructor

Swipepanel({
  1. Key? key,
  2. required String text,
  3. double height = 80,
  4. required VoidCallback onSwipeCallback,
  5. Color swipeButtonColor = Colors.amber,
  6. Color backgroundColor = Colors.black,
  7. EdgeInsets padding = const EdgeInsets.fromLTRB(0, 0, 0, 0),
  8. Color iconColor = Colors.white,
  9. TextStyle? buttonTextStyle,
  10. double? swipePercentageNeeded,
  11. IconData? icon,
})

Implementation

Swipepanel({
  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,
  this.icon,
}) : super(key: key);