diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart index ae3b5c64ca2..f54d4a8f6cf 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 afb55b73f03..beca5630d17 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 f37869dddc2..f6f8726da07 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 d423cbc86a0..c67546c8007 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 20befa3b67f..bb7cd57bab4 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 7daca9893ac..3399e7b3151 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 1383819660a..4d10ffd2783 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 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin, } /// Collected during [describeSemanticsConfiguration], used by - /// [assembleSemanticsNode] and [_combineSemanticsInfo]. + /// [assembleSemanticsNode]. List? _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 5f212083144..c41fced1b10 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 fcc3a1bbae8..e29c4c32ea6 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 11014b227a2..32946d3738c 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 @@ const String _flutterRenderingLibrary = 'package:flutter/rendering.dart'; /// 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 @@ abstract class Layer with DiagnosticableTreeMixin { 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 @@ abstract class Layer with DiagnosticableTreeMixin { /// 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 @@ abstract class Layer with DiagnosticableTreeMixin { /// 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 @@ class LayerHandle { 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 @@ class ContainerLayer extends Layer { /// /// 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 @@ class ContainerLayer extends Layer { /// 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 @@ class ColorFilterLayer extends ContainerLayer { } } -/// 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 4984c15a911..ca017083677 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 @@ class RenderListWheelViewport /// 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 8264cb9bfe9..a68a0f0e9ad 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 ddd21e089c7..6804028b443 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 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment { /// 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 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment { /// 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 @@ class _IncompleteSemanticsFragment extends _InterestingSemanticsFragment { /// /// 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 @@ class _IncompleteSemanticsFragment extends _InterestingSemanticsFragment { /// 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 acc88260a59..6a5945262a0 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 @@ class RenderParagraph extends RenderBox with ContainerRenderObjectMixin? _semanticsInfo; @override diff --git a/packages/flutter/lib/src/rendering/performance_overlay.dart b/packages/flutter/lib/src/rendering/performance_overlay.dart index d49d17ca508..18f721e2f54 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 77866294bdb..0583f3ae2c7 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 9fb544b0d6b..07c5f17d9fa 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 8a7d14e3ec4..40cc462dd3b 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 521caa400a9..18a24db76d2 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 2f58135e3eb..51e47497636 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 735b613257e..bde334853c6 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 596f555076d..c512d5f3559 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 69c55a153ce..5c2b4e72739 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 6480bae4c20..61875a49089 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 c9f8e13bc69..2183e2ea7f0 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 39a24063c30..b4edc7b0eb2 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 e1fdedad1ca..9a118533049 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 31d163d32de..c29c0f413da 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 7094d89c809..ba930e8a5cf 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 aca31fac114..dc173cf875b 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 bb7e06a7804..bf69f9d725a 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 ddefa6b33eb..1ac200bc9f7 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 d0628e3260e..affa2d59737 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 66317a23257..1f07f2a448c 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 @@ class ViewConfiguration { /// 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 @@ class ViewConfiguration { /// /// 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 @@ class ViewConfiguration { /// /// 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 @@ class ViewConfiguration { /// 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 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin 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 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin } } - /// 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 45d72611f41..69e843cd43a 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 6692e06a850..6f73c112f8e 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 4663925fc62..9a40cb3bab0 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';