mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make sure Window.dpr still has a setter (#8912)
This commit is contained in:
parent
ad02f3cc1a
commit
1c8e31b4fd
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user