Make sure Window.dpr still has a setter (#8912)

This commit is contained in:
Jonah Williams 2019-05-09 06:57:01 -07:00 committed by GitHub
parent ad02f3cc1a
commit 1c8e31b4fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,7 +538,12 @@ class Window {
///
/// * [WidgetsBindingObserver], for a mechanism at the widgets layer to
/// observe when this value changes.
double get devicePixelRatio => 1.0;
double get devicePixelRatio => _devicePixelRatio;
double _devicePixelRatio = 1.0;
// TODO(yjbanov): Remove setter usage from engine.
set devicePixelRatio(double value) {
_devicePixelRatio = value;
}
/// The dimensions of the rectangle into which the application will be drawn,
/// in physical pixels.