Unverified Commit 5ddc0576 authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

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).
parent 343577af
...@@ -209,18 +209,18 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture ...@@ -209,18 +209,18 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture
/// changes. /// changes.
/// ///
/// {@tool snippet} /// {@tool snippet}
/// Querying [Window.platformBrightness]. /// Querying [MediaQuery] directly. Preferred.
/// ///
/// ```dart /// ```dart
/// final Brightness brightness = WidgetsBinding.instance.window.platformBrightness; /// final Brightness brightness = MediaQuery.platformBrightnessOf(context);
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
/// {@tool snippet} /// {@tool snippet}
/// Querying [MediaQuery] directly. Preferred. /// Querying [PlatformDispatcher.platformBrightness].
/// ///
/// ```dart /// ```dart
/// final Brightness brightness = MediaQuery.platformBrightnessOf(context); /// final Brightness brightness = WidgetsBinding.instance.platformDispatcher.platformBrightness;
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
...@@ -402,11 +402,11 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture ...@@ -402,11 +402,11 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture
/// Each frame consists of the following phases: /// Each frame consists of the following phases:
/// ///
/// 1. The animation phase: The [handleBeginFrame] method, which is registered /// 1. The animation phase: The [handleBeginFrame] method, which is registered
/// with [Window.onBeginFrame], invokes all the transient frame callbacks /// with [PlatformDispatcher.onBeginFrame], invokes all the transient frame
/// registered with [scheduleFrameCallback], in registration order. This /// callbacks registered with [scheduleFrameCallback], in registration order.
/// includes all the [Ticker] instances that are driving [AnimationController] /// This includes all the [Ticker] instances that are driving
/// objects, which means all of the active [Animation] objects tick at this /// [AnimationController] objects, which means all of the active [Animation]
/// point. /// objects tick at this point.
/// ///
/// 2. Microtasks: After [handleBeginFrame] returns, any microtasks that got /// 2. Microtasks: After [handleBeginFrame] returns, any microtasks that got
/// scheduled by transient frame callbacks get to run. This typically includes /// scheduled by transient frame callbacks get to run. This typically includes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment