Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[framework] use ImageFilter for zoom page transition #101786

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

Merged

Conversation

jonahwilliams
Copy link
Contributor

Potentially fixes #100972 though we need full devicelab metrics.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Apr 12, 2022
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

child: ScaleTransition(scale: scaleTransition, child: child),
child: ScaleTransition(
scale: scaleTransition,
filterQuality: FilterQuality.none,
Copy link
Contributor

Choose a reason for hiding this comment

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

without knowing the background this seems strange. Should we add comments? Or is the idea that the docs on ScaleTransition cover this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What seems strange?

Copy link
Contributor

Choose a reason for hiding this comment

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

Providing a filter quality to the scale transition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its documented on those widgets that it uses an ImageFilter if one is provided, though the documentation isn't extensive: https://api.flutter.dev/flutter/widgets/ScaleTransition/filterQuality.html

Copy link
Contributor

Choose a reason for hiding this comment

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

I would have chosen FilterQuality.low. I don't think there will be much performance difference, but low will be smoother.

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot merged commit 9984ebb into flutter:master Apr 13, 2022
@jonahwilliams jonahwilliams deleted the improve_zoom_transition branch April 13, 2022 00:28
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Apr 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Apr 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Apr 13, 2022
jonahwilliams pushed a commit that referenced this pull request Apr 13, 2022
@jonahwilliams
Copy link
Contributor Author

This was reverted due to regressing numerous devicelab performance metrics. To reland, we'd likely need to wait until we have better cooperation among the opacity/image filter layers raster caching approach

@flar
Copy link
Contributor

flar commented Apr 14, 2022

Yes, I saw that in my own prototype testing so I'm not surprised. Do we have an Issue filed for looking at the interaction between those 2 layers? I imagine it might be similar to the problems recently spotted with opacity interacting poorly with its own DL child: #101872

@jonahwilliams jonahwilliams restored the improve_zoom_transition branch April 26, 2022 04:07
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.

Improve the memory footprint of the zoom page transition
5 participants