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

feat: scroll improvements #19

Merged
merged 3 commits into from
Oct 23, 2023
Merged

feat: scroll improvements #19

merged 3 commits into from
Oct 23, 2023

Conversation

nicolantean
Copy link
Collaborator

⭐ Feature


✏️ Description:

Scroll to the bottom when a new message is displayed.


🎥 Screen record:

iOS

Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-10-20.at.15.18.04.mp4

return messageResponse.toUserMessageList(
userId: currentUserId,
);
return UserMessage.fromResponse(json: response, userId: currentUserId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plural? Because it's a list

: _MessagesSection(messages: state.messages),
: _MessagesSection(
messages: state.messages,
scrollController: _scrollController),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comma

}

class _MessagesSectionState extends State<_MessagesSection> {
void _scrollDown() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the initial shouldn't animate. So we can add a bool if we want to animate or not.
However it's ok, let keep as it's know, it's just a demo app

@nicolantean nicolantean merged commit 48c2b8b into main Oct 23, 2023
2 checks passed
@nicolantean nicolantean deleted the feature/scroll-improvement branch October 23, 2023 16:17
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

Successfully merging this pull request may close these issues.

3 participants