From 5ddc0576368ce25215b03574bc54f382c0396aa9 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 16 Nov 2020 14:52:24 -0800 Subject: [PATCH] Remove last references to Window in docs. (#70637) This removes the last couple of doc references to the Window class in the framework, so that I can re-land the engine side change that removes the Window class (flutter/engine#22505). --- .../flutter/lib/src/rendering/binding.dart | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart index e83bf5de75..7ef3783211 100644 --- a/packages/flutter/lib/src/rendering/binding.dart +++ b/packages/flutter/lib/src/rendering/binding.dart @@ -209,14 +209,6 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture /// changes. /// /// {@tool snippet} - /// Querying [Window.platformBrightness]. - /// - /// ```dart - /// final Brightness brightness = WidgetsBinding.instance.window.platformBrightness; - /// ``` - /// {@end-tool} - /// - /// {@tool snippet} /// Querying [MediaQuery] directly. Preferred. /// /// ```dart @@ -225,6 +217,14 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture /// {@end-tool} /// /// {@tool snippet} + /// Querying [PlatformDispatcher.platformBrightness]. + /// + /// ```dart + /// final Brightness brightness = WidgetsBinding.instance.platformDispatcher.platformBrightness; + /// ``` + /// {@end-tool} + /// + /// {@tool snippet} /// Querying [MediaQueryData]. /// /// ```dart @@ -402,11 +402,11 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture /// Each frame consists of the following phases: /// /// 1. The animation phase: The [handleBeginFrame] method, which is registered - /// with [Window.onBeginFrame], invokes all the transient frame callbacks - /// registered with [scheduleFrameCallback], in registration order. This - /// includes all the [Ticker] instances that are driving [AnimationController] - /// objects, which means all of the active [Animation] objects tick at this - /// point. + /// with [PlatformDispatcher.onBeginFrame], invokes all the transient frame + /// callbacks registered with [scheduleFrameCallback], in registration order. + /// This includes all the [Ticker] instances that are driving + /// [AnimationController] objects, which means all of the active [Animation] + /// objects tick at this point. /// /// 2. Microtasks: After [handleBeginFrame] returns, any microtasks that got /// scheduled by transient frame callbacks get to run. This typically includes