-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update ListTile docs for color animation issues and add example
#106955
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
Update ListTile docs for color animation issues and add example
#106955
Conversation
b03a651 to
5857c45
Compare
gspencergoog
left a comment
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.
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.
may need
Do they need to be wrapped individually in order for these animations to work? what other options are there?
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.
I can't tell where this lines up with the performance drawbacks you have documented in your other PR, but it would be nice to make sure they are close by here. :)
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.
I place that performance line just below so if you're building the list_tile with Material for animation, you can reference performance implications right there below it.
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.
Thank you for checking that!
Can you clarify may need? If it is necessary in every case, it should just say must, if otherwise, when would you not need it? Is there another way?
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.
In my testing, I found that it is always needed when animating colors as you want colors to be animated with the ListTile itself and get the desired results.
Update docs to to say must.
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.
Thanks! That is one that folks always catch me on. 😜
Piinks
left a comment
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.
LGTM!
22152de to
92d6e44
Compare
|
Try again when the tree status has been applied to this PR. |

context: #102310
part of #105760
related to #107104
This PR adds an explanation and an example of when
ListTileneeds to be wrapped withMaterialto animate colors.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.