-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
In AnimatedList
, AnimationController should forward when _itemBuilder()
is called but not insertItem()
#148379
Labels
c: new feature
Nothing broken; request for a new capability
found in release: 3.22
Found to occur in 3.22
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P3
Issues that are less important to the Flutter project
team-framework
Owned by Framework team
triaged-framework
Triaged by Framework team
Comments
Thanks for the detailed report. I was able to replicate this in latest versions. stable, master flutter doctor -v
|
darshankawar
added
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
team-framework
Owned by Framework team
found in release: 3.22
Found to occur in 3.22
and removed
in triage
Presently being triaged by the triage team
labels
May 15, 2024
9 tasks
Piinks
added
triaged-framework
Triaged by Framework team
P3
Issues that are less important to the Flutter project
c: new feature
Nothing broken; request for a new capability
labels
May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c: new feature
Nothing broken; request for a new capability
found in release: 3.22
Found to occur in 3.22
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P3
Issues that are less important to the Flutter project
team-framework
Owned by Framework team
triaged-framework
Triaged by Framework team
Steps to reproduce
See code example please.
Expected results
When I scroll to items outside screen, their animation should start forwarding.
Actual results
When I insert items into
AnimatedList
, their animations will forward immediately.This causes when I scroll to those items outside screen, they have no animation, since AnimationControllers have disposed after animation duration.
flutter/packages/flutter/lib/src/widgets/animated_scroll_view.dart
Lines 1135 to 1137 in ddd6c86
What I wish is that when I scroll to other items,
_itemBuilder
will be called and their AnimationControllers should forward at this time.flutter/packages/flutter/lib/src/widgets/animated_scroll_view.dart
Lines 1076 to 1092 in ddd6c86
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Expected: When I scroll to those items outside screen, they start fading in.
https://github.com/flutter/flutter/assets/73378246/a8531a9f-636e-44b4-91f8-12147041b3ef
In fact: Animations have already completed.
https://github.com/flutter/flutter/assets/73378246/4b6343cc-6193-4681-a5e8-3ea2a53d1448
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: