docimports for rendering library (#151958)
Part of https://github.com/flutter/flutter/issues/150800.
diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart
index ae3b5c6..f54d4a8 100644
--- a/packages/flutter/lib/src/rendering/binding.dart
+++ b/packages/flutter/lib/src/rendering/binding.dart
@@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'dart:ui';
+///
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'layer.dart';
+library;
+
import 'dart:ui' as ui show PictureRecorder, SceneBuilder, SemanticsUpdate;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart
index afb55b7..beca563 100644
--- a/packages/flutter/lib/src/rendering/box.dart
+++ b/packages/flutter/lib/src/rendering/box.dart
@@ -2,6 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'image.dart';
+/// @docImport 'paragraph.dart';
+/// @docImport 'proxy_box.dart';
+/// @docImport 'shifted_box.dart';
+/// @docImport 'sliver.dart';
+/// @docImport 'viewport.dart';
+library;
+
import 'dart:math' as math;
import 'dart:ui' as ui show ViewConstraints, lerpDouble;
diff --git a/packages/flutter/lib/src/rendering/custom_layout.dart b/packages/flutter/lib/src/rendering/custom_layout.dart
index f37869d..f6f8726 100644
--- a/packages/flutter/lib/src/rendering/custom_layout.dart
+++ b/packages/flutter/lib/src/rendering/custom_layout.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'stack.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'box.dart';
diff --git a/packages/flutter/lib/src/rendering/custom_paint.dart b/packages/flutter/lib/src/rendering/custom_paint.dart
index d423cbc..c67546c 100644
--- a/packages/flutter/lib/src/rendering/custom_paint.dart
+++ b/packages/flutter/lib/src/rendering/custom_paint.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:collection';
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/debug.dart b/packages/flutter/lib/src/rendering/debug.dart
index 20befa3..bb7cd57 100644
--- a/packages/flutter/lib/src/rendering/debug.dart
+++ b/packages/flutter/lib/src/rendering/debug.dart
@@ -2,6 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'dart:developer';
+///
+/// @docImport 'package:flutter/scheduler.dart';
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'binding.dart';
+/// @docImport 'layer.dart';
+/// @docImport 'proxy_box.dart';
+/// @docImport 'shifted_box.dart';
+/// @docImport 'view.dart';
+library;
+
import 'box.dart';
import 'object.dart';
diff --git a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart
index 7daca98..3399e7b 100644
--- a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart
+++ b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'flex.dart';
+/// @docImport 'shifted_box.dart';
+library;
+
import 'dart:math' as math;
import 'dart:ui' as ui;
diff --git a/packages/flutter/lib/src/rendering/editable.dart b/packages/flutter/lib/src/rendering/editable.dart
index 1383819..4d10ffd 100644
--- a/packages/flutter/lib/src/rendering/editable.dart
+++ b/packages/flutter/lib/src/rendering/editable.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/cupertino.dart';
+library;
+
import 'dart:collection';
import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, LineMetrics, TextBox;
@@ -1278,7 +1281,7 @@
}
/// Collected during [describeSemanticsConfiguration], used by
- /// [assembleSemanticsNode] and [_combineSemanticsInfo].
+ /// [assembleSemanticsNode].
List<InlineSpanSemanticsInformation>? _semanticsInfo;
// Caches [SemanticsNode]s created during [assembleSemanticsNode] so they
diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart
index 5f21208..c41fced 100644
--- a/packages/flutter/lib/src/rendering/flex.dart
+++ b/packages/flutter/lib/src/rendering/flex.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/flow.dart b/packages/flutter/lib/src/rendering/flow.dart
index fcc3a1b..e29c4c3 100644
--- a/packages/flutter/lib/src/rendering/flow.dart
+++ b/packages/flutter/lib/src/rendering/flow.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'stack.dart';
+library;
+
import 'dart:ui' as ui show Color;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/layer.dart b/packages/flutter/lib/src/rendering/layer.dart
index 11014b2..32946d3 100644
--- a/packages/flutter/lib/src/rendering/layer.dart
+++ b/packages/flutter/lib/src/rendering/layer.dart
@@ -2,6 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/services.dart';
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'binding.dart';
+/// @docImport 'object.dart';
+/// @docImport 'performance_overlay.dart';
+/// @docImport 'proxy_box.dart';
+/// @docImport 'view.dart';
+library;
+
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
@@ -85,10 +95,10 @@
/// different parents. The scene must be explicitly recomposited after such
/// changes are made; the layer tree does not maintain its own dirty state.
///
-/// To composite the tree, create a [SceneBuilder] object using
+/// To composite the tree, create a [ui.SceneBuilder] object using
/// [RendererBinding.createSceneBuilder], pass it to the root [Layer] object's
-/// [addToScene] method, and then call [SceneBuilder.build] to obtain a [Scene].
-/// A [Scene] can then be painted using [dart:ui.FlutterView.render].
+/// [addToScene] method, and then call [ui.SceneBuilder.build] to obtain a [ui.Scene].
+/// A [ui.Scene] can then be painted using [ui.FlutterView.render].
///
/// ## Memory
///
@@ -183,7 +193,7 @@
bool _debugMutationsLocked = false;
/// Whether or not this layer, or any child layers, can be rasterized with
- /// [Scene.toImage] or [Scene.toImageSync].
+ /// [ui.Scene.toImage] or [ui.Scene.toImageSync].
///
/// If `false`, calling the above methods may yield an image which is
/// incomplete.
@@ -297,7 +307,7 @@
/// Clears any retained resources that this layer holds.
///
- /// This method must dispose resources such as [EngineLayer] and [Picture]
+ /// This method must dispose resources such as [ui.EngineLayer] and [ui.Picture]
/// objects. The layer is still usable after this call, but any graphics
/// related resources it holds will need to be recreated.
///
@@ -740,7 +750,7 @@
/// A handle to prevent a [Layer]'s platform graphics resources from being
/// disposed.
///
-/// [Layer] objects retain native resources such as [EngineLayer]s and [Picture]
+/// [Layer] objects retain native resources such as [ui.EngineLayer]s and [ui.Picture]
/// objects. These objects may in turn retain large chunks of texture memory,
/// either directly or indirectly.
///
@@ -802,10 +812,10 @@
String toString() => 'LayerHandle(${_layer != null ? _layer.toString() : 'DISPOSED'})';
}
-/// A composited layer containing a [Picture].
+/// A composited layer containing a [ui.Picture].
///
/// Picture layers are always leaves in the layer tree. They are also
-/// responsible for disposing of the [Picture] object they hold. This is
+/// responsible for disposing of the [ui.Picture] object they hold. This is
/// typically done when their parent and all [RenderObject]s that participated
/// in painting the picture have been disposed.
class PictureLayer extends Layer {
@@ -1337,7 +1347,7 @@
///
/// This method is typically used by [addToScene] to insert the children into
/// the scene. Subclasses of [ContainerLayer] typically override [addToScene]
- /// to apply effects to the scene using the [SceneBuilder] API, then insert
+ /// to apply effects to the scene using the [ui.SceneBuilder] API, then insert
/// their children using [addChildrenToScene], then reverse the aforementioned
/// effects before returning from [addToScene].
void addChildrenToScene(ui.SceneBuilder builder) {
@@ -1356,7 +1366,7 @@
/// be unreliable unless the deepest layer in the chain collapses the
/// `layerOffset` in [addToScene] to zero, meaning that it passes
/// [Offset.zero] to its children, and bakes any incoming `layerOffset` into
- /// the [SceneBuilder] as (for instance) a transform (which is then also
+ /// the [ui.SceneBuilder] as (for instance) a transform (which is then also
/// included in the transformation applied by [applyTransform]).
///
/// For example, if [addToScene] applies the `layerOffset` and then
@@ -1865,9 +1875,9 @@
}
}
-/// A composite layer that applies an [ImageFilter] to its children.
+/// A composite layer that applies an [ui.ImageFilter] to its children.
class ImageFilterLayer extends OffsetLayer {
- /// Creates a layer that applies an [ImageFilter] to its children.
+ /// Creates a layer that applies an [ui.ImageFilter] to its children.
///
/// The [imageFilter] property must be non-null before the compositing phase
/// of the pipeline.
diff --git a/packages/flutter/lib/src/rendering/list_wheel_viewport.dart b/packages/flutter/lib/src/rendering/list_wheel_viewport.dart
index 4984c15..ca01708 100644
--- a/packages/flutter/lib/src/rendering/list_wheel_viewport.dart
+++ b/packages/flutter/lib/src/rendering/list_wheel_viewport.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/animation.dart';
@@ -247,18 +250,18 @@
/// A value smaller than 1 means items at the edges of the cylinder are
/// entirely contained inside the viewport.
///
- /// A value larger than 1 means angles less than ±[pi] / 2 from the
+ /// A value larger than 1 means angles less than ±[math.pi] / 2 from the
/// center of the cylinder are visible.
///
/// The same number of children will be visible in the viewport regardless of
/// the [diameterRatio]. The number of children visible is based on the
/// viewport's length along the main axis divided by the children's
/// [itemExtent]. Then the children are evenly distributed along the visible
- /// angles up to ±[pi] / 2.
+ /// angles up to ±[math.pi] / 2.
///
/// Just as it's impossible to stretch a paper to cover the an entire
/// half of a cylinder's surface where the cylinder has the same diameter
- /// as the paper's length, choosing a [diameterRatio] smaller than [pi]
+ /// as the paper's length, choosing a [diameterRatio] smaller than [math.pi]
/// will leave same gaps between the children.
///
/// Defaults to an arbitrary but aesthetically reasonable number of 2.0.
diff --git a/packages/flutter/lib/src/rendering/mouse_tracker.dart b/packages/flutter/lib/src/rendering/mouse_tracker.dart
index 8264cb9..a68a0f0 100644
--- a/packages/flutter/lib/src/rendering/mouse_tracker.dart
+++ b/packages/flutter/lib/src/rendering/mouse_tracker.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'binding.dart';
+library;
+
import 'dart:collection' show LinkedHashMap;
import 'dart:ui';
diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart
index ddd21e0..6804028 100644
--- a/packages/flutter/lib/src/rendering/object.dart
+++ b/packages/flutter/lib/src/rendering/object.dart
@@ -2,6 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'dart:ui';
+///
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'box.dart';
+/// @docImport 'proxy_box.dart';
+/// @docImport 'view.dart';
+/// @docImport 'viewport.dart';
+library;
+
import 'dart:ui' as ui show PictureRecorder;
import 'package:flutter/animation.dart';
@@ -4685,7 +4695,7 @@
/// Adds the geometric information of `ancestor` to this object.
///
/// Those information are required to properly compute the value for
- /// [SemanticsNode.transform], [SemanticsNode.clipRect], and
+ /// [SemanticsNode.transform], [SemanticsNode.parentSemanticsClipRect], and
/// [SemanticsNode.rect].
///
/// Ancestors have to be added in order from [owner] up until the next
@@ -4699,7 +4709,7 @@
/// the semantics tree.
///
/// The root node is available as the only element in the Iterable returned by
-/// [children].
+/// [_children].
class _RootSemanticsFragment extends _InterestingSemanticsFragment {
_RootSemanticsFragment({
required super.owner,
@@ -4818,7 +4828,7 @@
///
/// If [markAsExplicit] was not called before this fragment is added to
/// another fragment it will merge [config] into the parent's [SemanticsNode]
-/// and add its [children] to it.
+/// and add its [_children] to it.
///
/// If [markAsExplicit] was called before adding this fragment to another
/// fragment it will create a new [SemanticsNode]. The newly created node will
@@ -4827,7 +4837,7 @@
/// Similarly, the new node will also take over the children that otherwise
/// would have been added to the parent's [SemanticsNode].
///
-/// After a call to [markAsExplicit] the only element returned by [children]
+/// After a call to [markAsExplicit] the only element returned by [_children]
/// is the newly created node and [config] will return null as the fragment
/// no longer wants to merge any semantic information into the parent's
/// [SemanticsNode].
diff --git a/packages/flutter/lib/src/rendering/paragraph.dart b/packages/flutter/lib/src/rendering/paragraph.dart
index acc8826..6a59452 100644
--- a/packages/flutter/lib/src/rendering/paragraph.dart
+++ b/packages/flutter/lib/src/rendering/paragraph.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'editable.dart';
+library;
+
import 'dart:collection';
import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, Gradient, LineMetrics, PlaceholderAlignment, Shader, TextBox, TextHeightBehavior;
@@ -1037,7 +1042,7 @@
}
/// Collected during [describeSemanticsConfiguration], used by
- /// [assembleSemanticsNode] and [_combineSemanticsInfo].
+ /// [assembleSemanticsNode].
List<InlineSpanSemanticsInformation>? _semanticsInfo;
@override
diff --git a/packages/flutter/lib/src/rendering/performance_overlay.dart b/packages/flutter/lib/src/rendering/performance_overlay.dart
index d49d17c..18f721e 100644
--- a/packages/flutter/lib/src/rendering/performance_overlay.dart
+++ b/packages/flutter/lib/src/rendering/performance_overlay.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/material.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'box.dart';
diff --git a/packages/flutter/lib/src/rendering/platform_view.dart b/packages/flutter/lib/src/rendering/platform_view.dart
index 7786629..0583f3a 100644
--- a/packages/flutter/lib/src/rendering/platform_view.dart
+++ b/packages/flutter/lib/src/rendering/platform_view.dart
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
diff --git a/packages/flutter/lib/src/rendering/proxy_box.dart b/packages/flutter/lib/src/rendering/proxy_box.dart
index 9fb544b..07c5f17 100644
--- a/packages/flutter/lib/src/rendering/proxy_box.dart
+++ b/packages/flutter/lib/src/rendering/proxy_box.dart
@@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'proxy_sliver.dart';
+/// @docImport 'sliver.dart';
+library;
+
import 'dart:ui' as ui show Color, Gradient, Image, ImageFilter;
import 'package:flutter/animation.dart';
diff --git a/packages/flutter/lib/src/rendering/rotated_box.dart b/packages/flutter/lib/src/rendering/rotated_box.dart
index 8a7d14e..40cc462 100644
--- a/packages/flutter/lib/src/rendering/rotated_box.dart
+++ b/packages/flutter/lib/src/rendering/rotated_box.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'proxy_box.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/selection.dart b/packages/flutter/lib/src/rendering/selection.dart
index 521caa4..18a24db 100644
--- a/packages/flutter/lib/src/rendering/selection.dart
+++ b/packages/flutter/lib/src/rendering/selection.dart
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/gestures.dart';
+/// @docImport 'package:flutter/material.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'package:vector_math/vector_math_64.dart';
diff --git a/packages/flutter/lib/src/rendering/service_extensions.dart b/packages/flutter/lib/src/rendering/service_extensions.dart
index 2f58135..51e4749 100644
--- a/packages/flutter/lib/src/rendering/service_extensions.dart
+++ b/packages/flutter/lib/src/rendering/service_extensions.dart
@@ -2,6 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'dart:developer';
+///
+/// @docImport 'package:flutter/painting.dart';
+///
+/// @docImport 'binding.dart';
+/// @docImport 'box.dart';
+/// @docImport 'debug.dart';
+/// @docImport 'object.dart';
+library;
+
/// Service extension constants for the rendering library.
///
/// These constants will be used when registering service extensions in the
diff --git a/packages/flutter/lib/src/rendering/shifted_box.dart b/packages/flutter/lib/src/rendering/shifted_box.dart
index 735b613..bde3348 100644
--- a/packages/flutter/lib/src/rendering/shifted_box.dart
+++ b/packages/flutter/lib/src/rendering/shifted_box.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'proxy_box.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver.dart b/packages/flutter/lib/src/rendering/sliver.dart
index 596f555..c512d5f 100644
--- a/packages/flutter/lib/src/rendering/sliver.dart
+++ b/packages/flutter/lib/src/rendering/sliver.dart
@@ -2,6 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/material.dart';
+///
+/// @docImport 'proxy_box.dart';
+/// @docImport 'sliver_fill.dart';
+/// @docImport 'sliver_grid.dart';
+/// @docImport 'sliver_list.dart';
+/// @docImport 'sliver_padding.dart';
+/// @docImport 'sliver_persistent_header.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_fill.dart b/packages/flutter/lib/src/rendering/sliver_fill.dart
index 69c55a1..5c2b4e7 100644
--- a/packages/flutter/lib/src/rendering/sliver_fill.dart
+++ b/packages/flutter/lib/src/rendering/sliver_fill.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'sliver_list.dart';
+library;
+
import 'dart:math' as math;
import 'box.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart b/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart
index 6480bae..61875a4 100644
--- a/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart
+++ b/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'sliver_fill.dart';
+/// @docImport 'sliver_list.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_grid.dart b/packages/flutter/lib/src/rendering/sliver_grid.dart
index c9f8e13..2183e2e 100644
--- a/packages/flutter/lib/src/rendering/sliver_grid.dart
+++ b/packages/flutter/lib/src/rendering/sliver_grid.dart
@@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'sliver_fixed_extent_list.dart';
+/// @docImport 'sliver_list.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_group.dart b/packages/flutter/lib/src/rendering/sliver_group.dart
index 39a2406..b4edc7b 100644
--- a/packages/flutter/lib/src/rendering/sliver_group.dart
+++ b/packages/flutter/lib/src/rendering/sliver_group.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:vector_math/vector_math_64.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_list.dart b/packages/flutter/lib/src/rendering/sliver_list.dart
index e1fdeda..9a11853 100644
--- a/packages/flutter/lib/src/rendering/sliver_list.dart
+++ b/packages/flutter/lib/src/rendering/sliver_list.dart
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'sliver_fixed_extent_list.dart';
+/// @docImport 'sliver_grid.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'box.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart
index 31d163d..c29c0f4 100644
--- a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart
+++ b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart
@@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'sliver_grid.dart';
+/// @docImport 'sliver_list.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'package:vector_math/vector_math_64.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_padding.dart b/packages/flutter/lib/src/rendering/sliver_padding.dart
index 7094d89..ba930e8 100644
--- a/packages/flutter/lib/src/rendering/sliver_padding.dart
+++ b/packages/flutter/lib/src/rendering/sliver_padding.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:vector_math/vector_math_64.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_persistent_header.dart b/packages/flutter/lib/src/rendering/sliver_persistent_header.dart
index aca31fac..dc173cf 100644
--- a/packages/flutter/lib/src/rendering/sliver_persistent_header.dart
+++ b/packages/flutter/lib/src/rendering/sliver_persistent_header.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/material.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/animation.dart';
diff --git a/packages/flutter/lib/src/rendering/sliver_tree.dart b/packages/flutter/lib/src/rendering/sliver_tree.dart
index bb7e06a..bf69f9d 100644
--- a/packages/flutter/lib/src/rendering/sliver_tree.dart
+++ b/packages/flutter/lib/src/rendering/sliver_tree.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/stack.dart b/packages/flutter/lib/src/rendering/stack.dart
index ddefa6b..1ac200b 100644
--- a/packages/flutter/lib/src/rendering/stack.dart
+++ b/packages/flutter/lib/src/rendering/stack.dart
@@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'flow.dart';
+/// @docImport 'proxy_box.dart';
+library;
+
import 'dart:math' as math;
import 'dart:ui' show lerpDouble;
diff --git a/packages/flutter/lib/src/rendering/table_border.dart b/packages/flutter/lib/src/rendering/table_border.dart
index d0628e3..affa2d5 100644
--- a/packages/flutter/lib/src/rendering/table_border.dart
+++ b/packages/flutter/lib/src/rendering/table_border.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/material.dart';
+library;
+
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart' hide Border;
diff --git a/packages/flutter/lib/src/rendering/view.dart b/packages/flutter/lib/src/rendering/view.dart
index 66317a2..1f07f2a 100644
--- a/packages/flutter/lib/src/rendering/view.dart
+++ b/packages/flutter/lib/src/rendering/view.dart
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/semantics.dart';
+/// @docImport 'package:flutter/widgets.dart';
+/// @docImport 'package:flutter_test/flutter_test.dart';
+library;
+
import 'dart:io' show Platform;
import 'dart:ui' as ui show FlutterView, Scene, SceneBuilder, SemanticsUpdate;
@@ -24,14 +29,14 @@
/// and a [devicePixelRatio] of 1.0.
///
/// [ViewConfiguration.fromView] is a more convenient way for deriving a
- /// [ViewConfiguration] from a given [FlutterView].
+ /// [ViewConfiguration] from a given [ui.FlutterView].
const ViewConfiguration({
this.physicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0),
this.logicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0),
this.devicePixelRatio = 1.0,
});
- /// Creates a view configuration for the provided [FlutterView].
+ /// Creates a view configuration for the provided [ui.FlutterView].
factory ViewConfiguration.fromView(ui.FlutterView view) {
final BoxConstraints physicalConstraints = BoxConstraints.fromViewConstraints(view.physicalConstraints);
final double devicePixelRatio = view.devicePixelRatio;
@@ -51,7 +56,7 @@
///
/// These constraints are enforced in [toPhysicalSize] when translating
/// the logical size of the root render object back to physical pixels for
- /// the [FlutterView.render] method.
+ /// the [ui.FlutterView.render] method.
final BoxConstraints physicalConstraints;
/// The pixel density of the output surface.
@@ -61,7 +66,7 @@
///
/// The matrix translates points from the local coordinate system of the
/// app (in logical pixels) to the global coordinate system of the
- /// [FlutterView] (in physical pixels).
+ /// [ui.FlutterView] (in physical pixels).
Matrix4 toMatrix() {
return Matrix4.diagonal3Values(devicePixelRatio, devicePixelRatio, 1.0);
}
@@ -81,10 +86,10 @@
/// Transforms the provided [Size] in logical pixels to physical pixels.
///
- /// The [FlutterView.render] method accepts only sizes in physical pixels, but
+ /// The [ui.FlutterView.render] method accepts only sizes in physical pixels, but
/// the framework operates in logical pixels. This method is used to transform
/// the logical size calculated for a [RenderView] back to a physical size
- /// suitable to be passed to [FlutterView.render].
+ /// suitable to be passed to [ui.FlutterView.render].
///
/// By default, this method just multiplies the provided [Size] with the
/// [devicePixelRatio] and constraints the results to the
@@ -198,7 +203,7 @@
return configuration.logicalConstraints;
}
- /// The [FlutterView] into which this [RenderView] will render.
+ /// The [ui.FlutterView] into which this [RenderView] will render.
ui.FlutterView get flutterView => _view;
final ui.FlutterView _view;
@@ -365,10 +370,10 @@
}
}
- /// Sends the provided [SemanticsUpdate] to the [FlutterView] associated with
+ /// Sends the provided [ui.SemanticsUpdate] to the [ui.FlutterView] associated with
/// this [RenderView].
///
- /// A [SemanticsUpdate] is produced by a [SemanticsOwner] during the
+ /// A [ui.SemanticsUpdate] is produced by a [SemanticsOwner] during the
/// [EnginePhase.flushSemantics] phase.
void updateSemantics(ui.SemanticsUpdate update) {
_view.updateSemantics(update);
diff --git a/packages/flutter/lib/src/rendering/viewport.dart b/packages/flutter/lib/src/rendering/viewport.dart
index 45d7261..69e843c 100644
--- a/packages/flutter/lib/src/rendering/viewport.dart
+++ b/packages/flutter/lib/src/rendering/viewport.dart
@@ -2,6 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+///
+/// @docImport 'list_wheel_viewport.dart';
+/// @docImport 'sliver_fixed_extent_list.dart';
+/// @docImport 'sliver_grid.dart';
+/// @docImport 'sliver_list.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/animation.dart';
diff --git a/packages/flutter/lib/src/rendering/viewport_offset.dart b/packages/flutter/lib/src/rendering/viewport_offset.dart
index 6692e06..6f73c11 100644
--- a/packages/flutter/lib/src/rendering/viewport_offset.dart
+++ b/packages/flutter/lib/src/rendering/viewport_offset.dart
@@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/material.dart';
+///
+/// @docImport 'sliver.dart';
+/// @docImport 'sliver_persistent_header.dart';
+/// @docImport 'viewport.dart';
+library;
+
import 'package:flutter/animation.dart';
import 'package:flutter/foundation.dart';
diff --git a/packages/flutter/lib/src/rendering/wrap.dart b/packages/flutter/lib/src/rendering/wrap.dart
index 4663925..9a40cb3 100644
--- a/packages/flutter/lib/src/rendering/wrap.dart
+++ b/packages/flutter/lib/src/rendering/wrap.dart
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/// @docImport 'package:flutter/widgets.dart';
+library;
+
import 'dart:math' as math;
import 'package:flutter/foundation.dart';