diff --git a/lib/stub_ui/lib/src/engine.dart b/lib/stub_ui/lib/src/engine.dart index e54f78f0a7ae..1a7b3af75fc6 100644 --- a/lib/stub_ui/lib/src/engine.dart +++ b/lib/stub_ui/lib/src/engine.dart @@ -120,7 +120,7 @@ void webOnlyInitializeEngine() { domRenderer; bool waitingForAnimation = false; - ui.window.webOnlyScheduleFrameCallback = () { + ui.webOnlyScheduleFrameCallback = () { // We're asked to schedule a frame and call `frameHandler` when the frame // fires. if (!waitingForAnimation) { diff --git a/lib/stub_ui/lib/src/ui/test_embedding.dart b/lib/stub_ui/lib/src/ui/test_embedding.dart index d39ff3318045..15aa0404642f 100644 --- a/lib/stub_ui/lib/src/ui/test_embedding.dart +++ b/lib/stub_ui/lib/src/ui/test_embedding.dart @@ -45,7 +45,7 @@ Future webOnlyInitializeTestDomRenderer({double devicePixelRatio = 3.0}) { engine.window.debugOverrideDevicePixelRatio(devicePixelRatio); engine.window.webOnlyDebugPhysicalSizeOverride = Size(800 * devicePixelRatio, 600 * devicePixelRatio); - window.webOnlyScheduleFrameCallback = () {}; + webOnlyScheduleFrameCallback = () {}; engine.domRenderer.debugIsInWidgetTest = true; if (_platformInitializedFuture != null) { diff --git a/lib/stub_ui/lib/src/ui/window.dart b/lib/stub_ui/lib/src/ui/window.dart index e75a0f8427d5..a3667c5a0348 100644 --- a/lib/stub_ui/lib/src/ui/window.dart +++ b/lib/stub_ui/lib/src/ui/window.dart @@ -804,8 +804,6 @@ abstract class Window { _onLocaleChanged = callback; } - VoidCallback webOnlyScheduleFrameCallback; - /// Requests that, at the next appropriate opportunity, the [onBeginFrame] /// and [onDrawFrame] callbacks be invoked. /// @@ -1224,6 +1222,8 @@ class IsolateNameServer { } } +VoidCallback webOnlyScheduleFrameCallback; + /// The [Window] singleton. This object exposes the size of the display, the /// core scheduler API, the input event callback, the graphics drawing API, and /// other such core services.