fix(ui): Support free-scroll and auto-scroll for the installer logs (#1736) #1836
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π§π¨ UI Fix: Enhance Installer Logs Autoscroll Feature (#1736)
This PR fixes #1736, reported by @KobeW50
Overview
The installer logs' functionality has been enhanced by introducing a dynamic auto-scroll feature, Allowing free scrolling when the user pans the scroll. However, if the user scrolls down to the bottom or hits the auto-scroll-button it will lock in-place again improving the user experience/curiosity during the installation processes.
π Description
This PR introduces dynamic autoscroll behavior to the installer logs. The autoscroll feature listens for user pan interactions, allowing for intelligent autoscroll control/toggle. Users can detach autoscroll by start dragging out or holding, and it can reattach the tail (follow) by clicking the "go to bottom" FAB button or manually scrolling to the bottom (anchor point sweet point at
95%
).βπΌ Changes Made
Technical overview
_isAutoScrollEnabled
: flag to automatically call scroll to bottom on incoming data_isAutoScrolling
: flag to lock the current scroll configuration like a loading or busy state until scrolledshowAutoScrollButton
: flag to render the Scroll to bottom FAB button on the stacked screen𦯠Testing
Update Tests (ToDo - Not Found nor needed for now...)Stable Flutter v3.19.3
anddart 3.3.1
.π Notes & References
π¬ Reviewers
N/A (any mod is ok)
πΎ Feedback, changes, or suggestions are welcome! βπΌ ποΈ now a π emoji too...