-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
paintImage currently hard-codes the device pixel ratio by reaching out to the window singleton:
flutter/packages/flutter/lib/src/painting/decoration_image.dart
Lines 565 to 567 in d1244b7
| // It's ok to use this instead of a MediaQuery because if this changes, | |
| // whatever is aware of the MediaQuery will be repainting the image anyway. | |
| displaySize: outputSize * PaintingBinding.instance.window.devicePixelRatio, |
In a multi-viewed world, this will not work anymore because paintImage has no idea what view the image is getting painted on. This will need to be refactored to get the devicePixelRatio passed in.
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Type
Projects
Status
Done