SwipeableBubble constructor

const SwipeableBubble({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onSwipeRight,
  4. VoidCallback? onSwipeLeft,
  5. double swipeThreshold = 64.0,
  6. bool enableHaptics = true,
  7. Color rightActionColor = Colors.blue,
  8. Color leftActionColor = Colors.red,
  9. Icon rightActionIcon = const Icon(Icons.reply, color: Colors.white),
  10. Icon leftActionIcon = const Icon(Icons.delete, color: Colors.white),
})

Creates a SwipeableBubble widget

Implementation

const SwipeableBubble({
  Key? key,
  required this.child,
  this.onSwipeRight,
  this.onSwipeLeft,
  this.swipeThreshold = 64.0,
  this.enableHaptics = true,
  this.rightActionColor = Colors.blue,
  this.leftActionColor = Colors.red,
  this.rightActionIcon = const Icon(Icons.reply, color: Colors.white),
  this.leftActionIcon = const Icon(Icons.delete, color: Colors.white),
}) : super(key: key);