Delay in response when using bubbleBuilder
with GestureDetector
in Chat
widget
#570
Labels
bug
Something isn't working
General
What bug do you experience? 🐞
I experience a noticeable delay (~0.5 seconds) when tapping a
GestureDetector
within a custom bubble built with thebubbleBuilder
parameter of theChat
widget. This delay affects the responsiveness of interactive elements within the chat bubbles, impacting the user experience.How can it be reproduced? 🤔
Chat
widget with a custombubbleBuilder
that includes aGestureDetector
.GestureDetector
.What behavior is expected? 💡
Taps on elements within a custom bubble built with
bubbleBuilder
should register and respond immediately, without any noticeable delay.Extras
Screenshots or videos 📸
Not applicable.
Code snippets 📝
Here's a simplified example demonstrating the issue:
Environment info
flutter: 3.19.3
flutter-chat-ui: 1.6.12
flutter doctor -v
output 👇Platform
Device: iPhone 12 mini and iPhone 15 simulator
OS version: iOS 16.5.1 and iOS 17.2 respectively.
Additional context
Debugging Steps Taken
Here's a summary of my efforts to isolate and understand this issue:
customBottomWidget
responds instantly.flutter_bloc
for state management to rule out any potential delays introduced by state updates.GestureDetector
withInkWell
to check if the issue was specific to the gesture detection widget.Column
instead of the providedBubble
widget, observing the same delay.flutter clean
andflutter pub get
.The text was updated successfully, but these errors were encountered: