Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when list is on scroll more and new items(chats) are added to stream. #25

Open
ericel opened this issue Oct 26, 2020 · 2 comments

Comments

@ericel
Copy link

ericel commented Oct 26, 2020

I get the following exception when list is in load more and chat items are added to scream.

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following RangeError was thrown building StreamBuilder<int>(dirty, state:
_StreamBuilderBaseState<int, AsyncSnapshot<int>>#1312e):
RangeError (index): Invalid value: Not in inclusive range 0..19: 59
The relevant error-causing widget was:

package:app/…/state_widgets/chat_home_widget.dart:182
When the exception was thrown, this was the stack:
#0      List.[] (dart:core-patch/growable_array.dart:166:60)
#1      _StickyGroupedListViewState._showFixedGroupHeader
package:sticky_grouped_list/sticky_grouped_list.dart:324
#2      _StickyGroupedListViewState.build.<anonymous closure>
package:sticky_grouped_list/sticky_grouped_list.dart:24

I checked this behavior with native listview.builder but didn't get any such error.

But sticky_group_list causes this exception.

@maulik-benzatine
Copy link

I'm facing the same issue, any update on this?

device-2023-03-31-091216.mp4

======== Exception caught by foundation library ====================================================
The following RangeError was thrown while dispatching notifications for ValueNotifier<Iterable>:
RangeError (index): Invalid value: Not in inclusive range 0..9: 28

When the exception was thrown, this was the stack:
#0 List.[] (dart:core-patch/growable_array.dart:264:36)
#1 StickyGroupedListViewState._positionListener (package:sticky_grouped_list/src/sticky_grouped_list.dart:321:45)
#2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:381:24)
#3 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:495:5)
#4 _ScrollablePositionedListState._updatePositions (package:scrollable_positioned_list/src/scrollable_positioned_list.dart:578:49)
#5 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:381:24)
#6 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:495:5)
#7 _PositionedListState._schedulePositionNotificationUpdate. (package:scrollable_positioned_list/src/positioned_list.dart:364:53)

@tinkie101
Copy link

Also running into this issue. A fix would be very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants