-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Feat: Animate fill for material app bar #163913
base: master
Are you sure you want to change the base?
Conversation
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Thanks for the change. Although I do see how it's improving the fidelity, it probably shouldn't be implemented on Also we'll need some tests to guarantee it's not broken after the merge. |
a3352c9
to
b9253bb
Compare
@dkwingsmt Its ready to review again. |
|
||
expect(getAppBarAnimatedBackgroundColor(tester), defaultColor); | ||
await tester.pumpAndSettle(); | ||
expect(getAppBarAnimatedBackgroundColor(tester), scrolledColor); |
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 don't think this test case verifies the feature. It only verifies the starting color and ending color, while you're trying to verify that there's a smooth animation in between. I recommend going without pumpAndSettle
but pump
ing a time instead, and it should result in a intermediate color.
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.
Sure. Let me do the change.
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 have pushed changes for 2 intermediate color.
- At 50ms after animation start
- At 100ms after animation start
Animation duration is 200ms.
b1a60d1
to
5144d7a
Compare
The errors seem to be caused by comparing equality of the floating points. Try |
5144d7a
to
a646e41
Compare
Thanks, this worked very well. |
Feat: Animate fill for material app bar
fixes: #162988
Pre-launch Checklist
///
).