dash_chat
dash_chat copied to clipboard
[Question] Why is it necessary for scrollNotificationFunc to always return true?
Based on our debugging this morning, our team believes we cannot wrap DashChat with RefreshIndicator because scrollNotificationFunc returns true for the NotificationListener's onNotification. This essentially suppresses scroll events and prevents them from bubbling up.
We are currently on a fork and can flip this to false for our own needs, but I'm curious:
- Why does this return
truein the first place? It looks like it's related to adding theScrollToBottomwidget functionality: https://github.com/fayeed/dash_chat/commit/91f4eeb789a33a1647a9696be873a0103d1be5c9 - Are there implications to flipping this to
falsethat our team has not anticipated? https://github.com/fayeed/dash_chat/blob/cfbc9036c3a85996fa0f18c16930b7706ff94ccd/lib/src/message_listview.dart#L99
Thanks so much for your time and help!