SwipeableBubble constructor
const
SwipeableBubble({
- Key? key,
- required Widget child,
- VoidCallback? onSwipeRight,
- VoidCallback? onSwipeLeft,
- double swipeThreshold = 64.0,
- bool enableHaptics = true,
- Color rightActionColor = Colors.blue,
- Color leftActionColor = Colors.red,
- Icon rightActionIcon = const Icon(Icons.reply, color: Colors.white),
- 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);