paintImage currently hard-codes the device pixel ratio by reaching out to the window singleton:
|
// 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.
paintImagecurrently 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
In a multi-viewed world, this will not work anymore because
paintImagehas no idea what view the image is getting painted on. This will need to be refactored to get the devicePixelRatio passed in.