We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e10fde commit 037fc72Copy full SHA for 037fc72
lib/widgets/message_list.dart
@@ -218,8 +218,7 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
218
_scrollToBottomVisibleValue.value = true;
219
}
220
221
- final extentRemainingAboveViewport = scrollMetrics.maxScrollExtent - scrollMetrics.pixels;
222
- if (extentRemainingAboveViewport < kFetchMessagesBufferPixels) {
+ if (scrollMetrics.extentAfter < kFetchMessagesBufferPixels) {
223
// TODO: This ends up firing a second time shortly after we fetch a batch.
224
// The result is that each time we decide to fetch a batch, we end up
225
// fetching two batches in quick succession. This is basically harmless
0 commit comments