-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
return messageResponse.toUserMessageList( | ||
userId: currentUserId, | ||
); | ||
return UserMessage.fromResponse(json: response, userId: currentUserId); |
There was a problem hiding this comment.
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
mobile/lib/ui/home/home_screen.dart
Outdated
: _MessagesSection(messages: state.messages), | ||
: _MessagesSection( | ||
messages: state.messages, | ||
scrollController: _scrollController), |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
⭐ 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