not replyable messages are no longer swipable

This commit is contained in:
Elias Müller 2024-05-10 22:29:40 +02:00
parent 0f84257eba
commit 1f30e2d97f

View File

@ -269,6 +269,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
_dragStartPosition = _position;
},
onHorizontalDragUpdate: (details) {
if(!widget.bubbleData.isReplyable) return;
var dx = details.delta.dx - _dragStartPosition.dx;
setState(() {
_position = _position.dx.abs() > 30 ? Offset(_position.dx, 0) : Offset(_position.dx + dx, 0);