You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to implement the "scroll to bottom" button in a way that
behaves well when scrolling to the growth end of a sliver -- in
particular, when scrolling to the end of the message list after we
split it into back-to-back slivers -- we'll want some differences
from the behavior provided by DrivenScrollActivity, which we've used
up until now (originally via the `animateTo` method).
That calls for our own ScrollActivity subclass, ScrollToEndActivity.
We'll want most of the same behavior as DrivenScrollActivity, with
just a couple of changes; but one of the places we want to change
isn't among the places that DrivenScrollActivity exposes for
subclassing. So add this class, based on DrivenScrollActivity but
with a customization point added in the additional spot we'll need.
Originally there were two additional customization points needed.
After first drafting this change, I sent those upstream as two PRs:
flutter/flutter#166730flutter/flutter#166731
The first one has already landed in DrivenScrollActivity: the
applyMoveTo method now overridden by ScrollToEndActivity in a
previous commit. The other one, a `.simulation` constructor, is
pending. A "TODO(upstream)" comment points to that PR, because
once it also merges we can dispense with this class.
0 commit comments