refactor: enhance chat page auto-scrolling behavior
- Introduced new state variables to manage auto-scrolling functionality. - Implemented a method to calculate the distance from the bottom of the chat. - Improved the logic for auto-scrolling to the bottom when new messages arrive or when the user is near the bottom. - Refactored the scroll-to-bottom logic to enhance performance and user experience. - Ensured that the auto-scroll behavior is only triggered when appropriate, preventing unnecessary scrolls.
This commit is contained in:
1
tmp/flutter_ai_repo
Submodule
1
tmp/flutter_ai_repo
Submodule
Submodule tmp/flutter_ai_repo added at 79187cf7e3
Reference in New Issue
Block a user