8000 Fix#165741 by ujjwaltwitx · Pull Request #166190 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix#165741 #166190

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Fix#165741 #166190

wants to merge 7 commits into from

Conversation

ujjwaltwitx
Copy link
Contributor
@ujjwaltwitx ujjwaltwitx commented Mar 29, 2025

fixes issue #165741

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Mar 29, 2025
@dkwingsmt dkwingsmt self-requested a review April 3, 2025 00:32
@stan-at-work
Copy link
stan-at-work commented Apr 16, 2025

@ujjwaltwitx Can you make the changes that @dkwingsmt requested ?

@ujjwaltwitx
Copy link
Contributor Author
ujjwaltwitx commented Apr 17, 2025

Hey, sorry for the delay. I was a bit busy because of work. Will push the changes by this saturday.

@stan-at-work
Copy link

Hey, sorry for the delay. I was a bit busy because of work. Will push the changes by this saturday.

Great

8000

@ujjwaltwitx
Copy link
Contributor Author

@dkwingsmt I have pushed the changes.

@dkwingsmt dkwingsmt self-requested a review April 23, 2025 18:20
Comment on lines +547 to +548
await tester.pumpWidget(buildWidget(controller1));
expect(controller1.value, 0.0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great so far! Can you test that the controller works? For example by making the animation move forward.

expect(controller1.status, AnimationStatus.forward);

await tester.pump(const Duration(milliseconds: 500));
expect(controller1.value, closeTo(0.5, 0.01));
Copy link
Contributor
@dkwingsmt dkwingsmt Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verifying the controller's value does not necessarily verifies that the provided controller controls the animation, because the controller might have been only tied to the vsync and some internal controller is still controlling the animation.

My suggestion:

  • Without calling controller1.forward(), pump some duration.
  • Then forward.
  • Then pump another 200ms, and verify with a golden file. (See matchesGoldenFile).

Or if you can think of some other ways that demonstrates the effect of the controller :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make the required changes.

@stan-at-work
Copy link

Update's ?

@stan-at-work
Copy link

@ujjwaltwitx Do you have any updates on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0