stream-chat-flutter
stream-chat-flutter copied to clipboard
StreamMessageListView abrupt scrolling while pagination
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS, Android
What version are you using?
stream_chat_flutter: ^4.4.0
What happened?
Following video might help you with what's happening:
https://user-images.githubusercontent.com/92363650/186163658-c4d4a12b-c9de-4429-899a-a8915296446b.mp4
When you try to paginate old messages in ChannelPage it jumps to random messages which makes the chat experience bad
Steps to reproduce
Code Reference for StreamMessageListView

Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-arm, locale en-IN)
• Flutter version 3.0.1 at /Users/bhanu/Flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fb57da5f94 (3 months ago), 2022-05-19 15:50:29 -0700
• Engine revision caaafc5604
• Dart version 2.17.1
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at /Users/bhanu/Library/Android/sdk
• Platform android-33, build-tools 32.1.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
[✓] VS Code (version 1.70.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.46.0
[✓] Connected device (3 available)
• iPhone 13 (mobile) • 5E46DDF6-3986-4799-B6CC-64081C184507 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.4 21F79 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.101
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@bhanu-under25 thanks for reporting this issue
Pagination on the message list is quite tricky and we're trying to support as many features as possible while keeping the functionality as stable as we can.
This is a somewhat known issue (it doesn't happen always, it's quite random) and we're going to try fixing it once we release the stable v5
For the moment, I can try exposing the minCacheExtent parameter of the message list view, maybe this helps.
I'll let you know what I find out
Hey @bhanuU25, we did some updates in the StreamMessageListView. Can you test again with the latest changes on develop and let us know?
Thanks.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.