未验证 提交 1c8e31b4 编写于 作者: J Jonah Williams 提交者: GitHub

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

上级 ad02f3cc
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册