diff --git a/packages/flutter/lib/src/painting/alignment.dart b/packages/flutter/lib/src/painting/alignment.dart index e54272945a..81825536a5 100644 --- a/packages/flutter/lib/src/painting/alignment.dart +++ b/packages/flutter/lib/src/painting/alignment.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/cupertino.dart'; +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:ui' as ui show lerpDouble; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/basic_types.dart b/packages/flutter/lib/src/painting/basic_types.dart index a89a8ca3cf..61f6b37f0a 100644 --- a/packages/flutter/lib/src/painting/basic_types.dart +++ b/packages/flutter/lib/src/painting/basic_types.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 'package:flutter/rendering.dart'; +/// +/// @docImport 'text_span.dart'; +/// @docImport 'text_style.dart'; +library; + import 'dart:ui' show TextDirection; export 'dart:ui' show diff --git a/packages/flutter/lib/src/painting/beveled_rectangle_border.dart b/packages/flutter/lib/src/painting/beveled_rectangle_border.dart index 3c900e808d..90ee78638b 100644 --- a/packages/flutter/lib/src/painting/beveled_rectangle_border.dart +++ b/packages/flutter/lib/src/painting/beveled_rectangle_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 'rounded_rectangle_border.dart'; +library; + import 'dart:math' as math; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/binding.dart b/packages/flutter/lib/src/painting/binding.dart index c5c3131d26..c0d2b55189 100644 --- a/packages/flutter/lib/src/painting/binding.dart +++ b/packages/flutter/lib/src/painting/binding.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 'dart:ui'; +/// +/// @docImport 'package:flutter/widgets.dart'; +library; + import 'dart:ui' as ui; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart' show ServicesBinding; diff --git a/packages/flutter/lib/src/painting/border_radius.dart b/packages/flutter/lib/src/painting/border_radius.dart index eaed56be8b..bb55eb8960 100644 --- a/packages/flutter/lib/src/painting/border_radius.dart +++ b/packages/flutter/lib/src/painting/border_radius.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 'box_border.dart'; +/// @docImport 'box_decoration.dart'; +library; + import 'package:flutter/foundation.dart'; import 'basic_types.dart'; diff --git a/packages/flutter/lib/src/painting/borders.dart b/packages/flutter/lib/src/painting/borders.dart index 6d488e27d8..a4d2819915 100644 --- a/packages/flutter/lib/src/painting/borders.dart +++ b/packages/flutter/lib/src/painting/borders.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/material.dart'; +/// +/// @docImport 'box_border.dart'; +library; + import 'dart:math' as math; import 'dart:ui' as ui show lerpDouble; diff --git a/packages/flutter/lib/src/painting/box_border.dart b/packages/flutter/lib/src/painting/box_border.dart index 39f5676b10..ff7853c8b9 100644 --- a/packages/flutter/lib/src/painting/box_border.dart +++ b/packages/flutter/lib/src/painting/box_border.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/material.dart'; +/// +/// @docImport 'box_decoration.dart'; +library; + import 'package:flutter/foundation.dart'; import 'basic_types.dart'; diff --git a/packages/flutter/lib/src/painting/box_decoration.dart b/packages/flutter/lib/src/painting/box_decoration.dart index 9cba29aad3..4b067c52f2 100644 --- a/packages/flutter/lib/src/painting/box_decoration.dart +++ b/packages/flutter/lib/src/painting/box_decoration.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/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/box_fit.dart b/packages/flutter/lib/src/painting/box_fit.dart index a4ad41db61..688221bebb 100644 --- a/packages/flutter/lib/src/painting/box_fit.dart +++ b/packages/flutter/lib/src/painting/box_fit.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 'box_decoration.dart'; +library; + import 'dart:math' as math; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/box_shadow.dart b/packages/flutter/lib/src/painting/box_shadow.dart index 6cd3a14559..01232791d7 100644 --- a/packages/flutter/lib/src/painting/box_shadow.dart +++ b/packages/flutter/lib/src/painting/box_shadow.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 'dart:ui' as ui show Shadow, lerpDouble; diff --git a/packages/flutter/lib/src/painting/circle_border.dart b/packages/flutter/lib/src/painting/circle_border.dart index afec6883ef..bfb0705cf8 100644 --- a/packages/flutter/lib/src/painting/circle_border.dart +++ b/packages/flutter/lib/src/painting/circle_border.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 'box_border.dart'; +/// @docImport 'box_decoration.dart'; +/// @docImport 'oval_border.dart'; +/// @docImport 'shape_decoration.dart'; +library; + import 'dart:ui' as ui show lerpDouble; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/clip.dart b/packages/flutter/lib/src/painting/clip.dart index e3a95d2595..64acffabb0 100644 --- a/packages/flutter/lib/src/painting/clip.dart +++ b/packages/flutter/lib/src/painting/clip.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/rendering.dart'; +library; + import 'dart:ui' show Canvas, Clip, Paint, Path, RRect, Rect, VoidCallback; /// Clip utilities used by [PaintingContext]. diff --git a/packages/flutter/lib/src/painting/colors.dart b/packages/flutter/lib/src/painting/colors.dart index 52210e98ed..5a306590a3 100644 --- a/packages/flutter/lib/src/painting/colors.dart +++ b/packages/flutter/lib/src/painting/colors.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 'dart:ui' show Color, lerpDouble; @@ -401,7 +404,7 @@ class HSLColor { /// /// * [MaterialColor] and [MaterialAccentColor], which define Material Design /// primary and accent color swatches. -/// * [material.Colors], which defines all of the standard Material Design +/// * [Colors], which defines all of the standard Material Design /// colors. @immutable class ColorSwatch extends Color { diff --git a/packages/flutter/lib/src/painting/continuous_rectangle_border.dart b/packages/flutter/lib/src/painting/continuous_rectangle_border.dart index b7612e43cb..2c29dbb63a 100644 --- a/packages/flutter/lib/src/painting/continuous_rectangle_border.dart +++ b/packages/flutter/lib/src/painting/continuous_rectangle_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 'rounded_rectangle_border.dart'; +library; + import 'dart:math' as math; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/debug.dart b/packages/flutter/lib/src/painting/debug.dart index 53c9e5baf1..47a480f619 100644 --- a/packages/flutter/lib/src/painting/debug.dart +++ b/packages/flutter/lib/src/painting/debug.dart @@ -2,6 +2,17 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'dart:developer'; +/// @docImport 'dart:ui'; +/// +/// @docImport 'borders.dart'; +/// @docImport 'box_decoration.dart'; +/// @docImport 'box_shadow.dart'; +/// @docImport 'image_provider.dart'; +/// @docImport 'shader_warm_up.dart'; +/// @docImport 'shape_decoration.dart'; +library; + import 'dart:io'; import 'dart:ui' show Image, Picture, Size; diff --git a/packages/flutter/lib/src/painting/decoration.dart b/packages/flutter/lib/src/painting/decoration.dart index 5e7bd20766..6fc96be77f 100644 --- a/packages/flutter/lib/src/painting/decoration.dart +++ b/packages/flutter/lib/src/painting/decoration.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 'package:flutter/rendering.dart'; +/// +/// @docImport 'box_border.dart'; +/// @docImport 'box_decoration.dart'; +library; + import 'package:flutter/foundation.dart'; import 'basic_types.dart'; diff --git a/packages/flutter/lib/src/painting/decoration_image.dart b/packages/flutter/lib/src/painting/decoration_image.dart index 49ad19c328..3eb9428b4a 100644 --- a/packages/flutter/lib/src/painting/decoration_image.dart +++ b/packages/flutter/lib/src/painting/decoration_image.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/rendering.dart'; +/// @docImport 'package:flutter/widgets.dart'; +/// +/// @docImport 'box_decoration.dart'; +/// @docImport 'image_resolution.dart'; +library; + import 'dart:developer' as developer; import 'dart:math' as math; import 'dart:ui' as ui show FlutterView, Image; diff --git a/packages/flutter/lib/src/painting/edge_insets.dart b/packages/flutter/lib/src/painting/edge_insets.dart index 9fc54ea26e..d29420ed48 100644 --- a/packages/flutter/lib/src/painting/edge_insets.dart +++ b/packages/flutter/lib/src/painting/edge_insets.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 'dart:ui'; +/// +/// @docImport 'package:flutter/widgets.dart'; +library; + import 'dart:ui' as ui show ViewPadding, lerpDouble; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/flutter_logo.dart b/packages/flutter/lib/src/painting/flutter_logo.dart index 667c7474c0..6617f5c190 100644 --- a/packages/flutter/lib/src/painting/flutter_logo.dart +++ b/packages/flutter/lib/src/painting/flutter_logo.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 'box_decoration.dart'; +library; + import 'dart:math' as math; import 'dart:ui' as ui show Gradient, TextBox, lerpDouble; diff --git a/packages/flutter/lib/src/painting/geometry.dart b/packages/flutter/lib/src/painting/geometry.dart index fb12ba1065..4453380f3d 100644 --- a/packages/flutter/lib/src/painting/geometry.dart +++ b/packages/flutter/lib/src/painting/geometry.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/foundation.dart' show clampDouble; diff --git a/packages/flutter/lib/src/painting/gradient.dart b/packages/flutter/lib/src/painting/gradient.dart index 8a3931a2ef..4d0c470236 100644 --- a/packages/flutter/lib/src/painting/gradient.dart +++ b/packages/flutter/lib/src/painting/gradient.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/material.dart'; +/// +/// @docImport 'box_decoration.dart'; +library; + import 'dart:collection'; import 'dart:math' as math; import 'dart:ui' as ui show Gradient, lerpDouble; diff --git a/packages/flutter/lib/src/painting/image_cache.dart b/packages/flutter/lib/src/painting/image_cache.dart index f2a36ed8f7..98cb66a010 100644 --- a/packages/flutter/lib/src/painting/image_cache.dart +++ b/packages/flutter/lib/src/painting/image_cache.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 'binding.dart'; +/// @docImport 'image_provider.dart'; +library; + import 'dart:developer'; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart index ae2ef07987..bdf23e0740 100644 --- a/packages/flutter/lib/src/painting/image_provider.dart +++ b/packages/flutter/lib/src/painting/image_provider.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:async'; import 'dart:io'; import 'dart:math' as math; @@ -15,10 +18,10 @@ import 'binding.dart'; import 'image_cache.dart'; import 'image_stream.dart'; -/// Signature for the callback taken by [_createErrorHandlerAndKey]. +/// Signature for the callback taken by [ImageProvider._createErrorHandlerAndKey]. typedef _KeyAndErrorHandlerCallback = void Function(T key, ImageErrorListener handleError); -/// Signature used for error handling by [_createErrorHandlerAndKey]. +/// Signature used for error handling by [ImageProvider._createErrorHandlerAndKey]. typedef _AsyncKeyErrorHandler = Future Function(T key, Object exception, StackTrace? stack); /// Configuration information passed to the [ImageProvider.resolve] method to @@ -645,7 +648,7 @@ abstract class ImageProvider { } /// A class that exists to facilitate backwards compatibility in the transition -/// from [ImageProvider.load] to [ImageProvider.loadBuffer] to [ImageProvider.loadImage] +/// from [ImageProvider.loadBuffer] to [ImageProvider.loadImage] class _AbstractImageStreamCompleter extends ImageStreamCompleter {} /// Key for the image obtained by an [AssetImage] or [ExactAssetImage]. diff --git a/packages/flutter/lib/src/painting/image_resolution.dart b/packages/flutter/lib/src/painting/image_resolution.dart index f3fe4ef975..ec18d48ff7 100644 --- a/packages/flutter/lib/src/painting/image_resolution.dart +++ b/packages/flutter/lib/src/painting/image_resolution.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:async'; import 'dart:collection'; diff --git a/packages/flutter/lib/src/painting/image_stream.dart b/packages/flutter/lib/src/painting/image_stream.dart index 63a24e4a0b..f43942a8c3 100644 --- a/packages/flutter/lib/src/painting/image_stream.dart +++ b/packages/flutter/lib/src/painting/image_stream.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 'dart:ui'; +/// +/// @docImport 'package:flutter/widgets.dart'; +/// +/// @docImport 'image_cache.dart'; +/// @docImport 'image_provider.dart'; +library; + import 'dart:async'; import 'dart:ui' as ui show Codec, FrameInfo, Image; diff --git a/packages/flutter/lib/src/painting/inline_span.dart b/packages/flutter/lib/src/painting/inline_span.dart index 97bb83f2c6..49d8cd8558 100644 --- a/packages/flutter/lib/src/painting/inline_span.dart +++ b/packages/flutter/lib/src/painting/inline_span.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/material.dart'; +/// +/// @docImport 'placeholder_span.dart'; +library; + import 'dart:ui' as ui show ParagraphBuilder, StringAttribute; import 'package:flutter/foundation.dart'; @@ -154,7 +161,7 @@ List combineSemanticsInfo(List