We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following is my code snippet
StickyGroupedListView<Message, DateTime>( reverse: true, floatingHeader: true, elements: state.messages, order: StickyGroupedListOrder.DESC, itemScrollController: groupedItemScrollController, itemPositionsListener: itemPositionsListener, elementIdentifier: (message) => message.msgId, itemComparator: (a, b) => (a.dateTime).compareTo(b.dateTime), groupBy: (msg) => DateTime(msg.dateTime.year, msg.dateTime.month, msg.dateTime.day), groupSeparatorBuilder: (message) { return Text('Header'); }, itemBuilder: (context, message) { return Text('Message'); }, )
Whenever user adds a new message, I'm calling following code to take user to first message in chat, which is taking me to index 1 instead of 0.
groupedItemScrollController.jumpTo(index: 0);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Following is my code snippet
Whenever user adds a new message, I'm calling following code to take user to first message in chat, which is taking me to index 1 instead of 0.
The text was updated successfully, but these errors were encountered: