diff --git a/packages/flutter/lib/painting.dart b/packages/flutter/lib/painting.dart index b5d55b5b89..da2915e3f7 100644 --- a/packages/flutter/lib/painting.dart +++ b/packages/flutter/lib/painting.dart @@ -15,6 +15,10 @@ /// * Use the [TextPainter] class for painting text. /// * Use [Decoration] (and more concretely [BoxDecoration]) for /// painting boxes. +/// +/// @docImport 'src/painting/box_decoration.dart'; +/// @docImport 'src/painting/decoration.dart'; +/// @docImport 'src/painting/text_painter.dart'; library painting; export 'dart:ui' show PlaceholderAlignment, Shadow, TextHeightBehavior, TextLeadingDistribution, kTextHeightNone; diff --git a/packages/flutter/lib/rendering.dart b/packages/flutter/lib/rendering.dart index dcf36cca13..a79e6733a8 100644 --- a/packages/flutter/lib/rendering.dart +++ b/packages/flutter/lib/rendering.dart @@ -19,6 +19,15 @@ /// [ServicesBinding], [GestureBinding], [SchedulerBinding], [PaintingBinding], /// and [RendererBinding]. The rendering library does not automatically create a /// binding, but relies on one being initialized with those features. +/// +/// @docImport 'package:flutter/foundation.dart'; +/// @docImport 'package:flutter/gestures.dart'; +/// @docImport 'package:flutter/scheduler.dart'; +/// @docImport 'package:flutter/services.dart'; +/// +/// @docImport 'src/rendering/binding.dart'; +/// @docImport 'src/rendering/box.dart'; +/// @docImport 'src/rendering/object.dart'; library rendering; export 'package:flutter/foundation.dart' show diff --git a/packages/flutter/lib/src/cupertino/colors.dart b/packages/flutter/lib/src/cupertino/colors.dart index e08f241abd..ff2d66b066 100644 --- a/packages/flutter/lib/src/cupertino/colors.dart +++ b/packages/flutter/lib/src/cupertino/colors.dart @@ -2,7 +2,7 @@ // 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 'package:flutter/material.dart'; /// /// @docImport 'button.dart'; /// @docImport 'nav_bar.dart'; @@ -68,7 +68,7 @@ abstract final class CupertinoColors { /// /// See also: /// - /// * [material.Colors.white], the same color, in the Material Design palette. + /// * [Colors.white], the same color, in the Material Design palette. /// * [black], opaque black in the [CupertinoColors] palette. static const Color white = Color(0xFFFFFFFF); @@ -78,7 +78,7 @@ abstract final class CupertinoColors { /// /// See also: /// - /// * [material.Colors.black], the same color, in the Material Design palette. + /// * [Colors.black], the same color, in the Material Design palette. /// * [white], opaque white in the [CupertinoColors] palette. static const Color black = Color(0xFF000000); @@ -86,7 +86,7 @@ abstract final class CupertinoColors { /// /// See also: /// - /// * [material.Colors.transparent], the same color, in the Material Design palette. + /// * [Colors.transparent], the same color, in the Material Design palette. static const Color transparent = Color(0x00000000); /// Used in iOS 10 for light background fills such as the chat bubble background. diff --git a/packages/flutter/lib/src/foundation/_bitfield_io.dart b/packages/flutter/lib/src/foundation/_bitfield_io.dart index be4a29e656..6cd2546d70 100644 --- a/packages/flutter/lib/src/foundation/_bitfield_io.dart +++ b/packages/flutter/lib/src/foundation/_bitfield_io.dart @@ -14,7 +14,7 @@ class BitField implements bitfield.BitField { : assert(_length <= _smiBits), _bits = _allZeros; - /// The dart:io implementation of [bitfield.Bitfield.filled]. + /// The dart:io implementation of [bitfield.BitField.filled]. BitField.filled(this._length, bool value) : assert(_length <= _smiBits), _bits = value ? _allOnes : _allZeros; diff --git a/packages/flutter/lib/src/foundation/_bitfield_web.dart b/packages/flutter/lib/src/foundation/_bitfield_web.dart index e45452ab18..84678ca58d 100644 --- a/packages/flutter/lib/src/foundation/_bitfield_web.dart +++ b/packages/flutter/lib/src/foundation/_bitfield_web.dart @@ -20,7 +20,7 @@ class BitField implements bitfield.BitField { // ignore: avoid_unused_constructor_parameters BitField(int length); - /// The web implementation of [bitfield.Bitfield.filled]. + /// The web implementation of [bitfield.BitField.filled]. // Can remove when we have metaclasses. // ignore: avoid_unused_constructor_parameters BitField.filled(int length, bool value); diff --git a/packages/flutter/lib/src/foundation/service_extensions.dart b/packages/flutter/lib/src/foundation/service_extensions.dart index 54d6874d1e..35ff0a72b1 100644 --- a/packages/flutter/lib/src/foundation/service_extensions.dart +++ b/packages/flutter/lib/src/foundation/service_extensions.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 'binding.dart'; +/// @docImport 'debug.dart'; +/// @docImport 'platform.dart'; +library; + /// Service extension constants for the foundation library. /// /// These constants will be used when registering service extensions in the diff --git a/packages/flutter/lib/src/painting/image_decoder.dart b/packages/flutter/lib/src/painting/image_decoder.dart index 328c840f73..5afd8555c8 100644 --- a/packages/flutter/lib/src/painting/image_decoder.dart +++ b/packages/flutter/lib/src/painting/image_decoder.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 'dart:ui'; +library; + import 'dart:typed_data'; import 'dart:ui' as ui show Codec, FrameInfo, Image, ImmutableBuffer; @@ -16,7 +19,7 @@ import 'binding.dart'; /// If the image is animated, this returns the first frame. Consider /// [instantiateImageCodec] if support for animated images is necessary. /// -/// This function differs from [ui.decodeImageFromList] in that it defers to +/// This function differs from [decodeImageFromList] in that it defers to /// [PaintingBinding.instantiateImageCodecWithSize], and therefore can be mocked /// in tests. Future decodeImageFromList(Uint8List bytes) async { diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart index 24b70bdef2..945e035f02 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -2,7 +2,7 @@ // 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 'package:flutter/material.dart'; library; import 'dart:collection'; @@ -73,7 +73,7 @@ const String _kColorBackgroundWarning = 'Cannot provide both a backgroundColor a /// ### Opacity and Color /// /// Each line here is progressively more opaque. The base color is -/// [material.Colors.black], and [Color.withOpacity] is used to create a +/// [Colors.black], and [Color.withOpacity] is used to create a /// derivative color with the desired opacity. The root [TextSpan] for this /// [RichText] widget is explicitly given the ambient [DefaultTextStyle], since /// [RichText] does not do that automatically. The inner [TextStyle] objects are diff --git a/packages/flutter/lib/src/scheduler/service_extensions.dart b/packages/flutter/lib/src/scheduler/service_extensions.dart index bafe0bb082..473dbac915 100644 --- a/packages/flutter/lib/src/scheduler/service_extensions.dart +++ b/packages/flutter/lib/src/scheduler/service_extensions.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; + /// Service extension constants for the scheduler library. /// /// These constants will be used when registering service extensions in the diff --git a/packages/flutter/lib/src/services/service_extensions.dart b/packages/flutter/lib/src/services/service_extensions.dart index 3c1c9cfa10..103147c7e6 100644 --- a/packages/flutter/lib/src/services/service_extensions.dart +++ b/packages/flutter/lib/src/services/service_extensions.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 'binding.dart'; +/// @docImport 'debug.dart'; +library; + /// Service extension constants for the services library. /// /// These constants will be used when registering service extensions in the diff --git a/packages/flutter/test/painting/no_op_codec.dart b/packages/flutter/test/painting/no_op_codec.dart index 8ab81d8324..183899c777 100644 --- a/packages/flutter/test/painting/no_op_codec.dart +++ b/packages/flutter/test/painting/no_op_codec.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/painting.dart'; +library; + import 'dart:ui'; /// Returns a [Codec] that throws on all member invocations. diff --git a/packages/flutter/test/widgets/shortcuts_test.dart b/packages/flutter/test/widgets/shortcuts_test.dart index 8665fcb675..20d656d889 100644 --- a/packages/flutter/test/widgets/shortcuts_test.dart +++ b/packages/flutter/test/widgets/shortcuts_test.dart @@ -2072,7 +2072,7 @@ class TestAction extends CallbackAction { /// An activator that accepts down events that has [key] as the logical key. /// /// This class is used only to tests. It is intentionally designed poorly by -/// returning null in [triggers], and checks [key] in [acceptsEvent]. +/// returning null in [triggers], and checks [key] in [accepts]. class DumbLogicalActivator extends ShortcutActivator { const DumbLogicalActivator(this.key);