From 17980da91a57fdcbfc4ead4f77b04a404166b571 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Wed, 1 Dec 2021 12:44:07 -0800 Subject: [PATCH] Update outdated macros (#94424) --- packages/flutter/lib/src/material/selectable_text.dart | 2 +- packages/flutter/lib/src/painting/image_provider.dart | 4 ++-- packages/flutter/lib/src/painting/text_painter.dart | 2 +- packages/flutter/lib/src/rendering/editable.dart | 2 +- packages/flutter/lib/src/rendering/paragraph.dart | 2 +- packages/flutter/lib/src/widgets/basic.dart | 2 +- packages/flutter/lib/src/widgets/editable_text.dart | 2 +- packages/flutter/lib/src/widgets/image.dart | 4 ++-- packages/flutter/lib/src/widgets/implicit_animations.dart | 2 +- packages/flutter/lib/src/widgets/text.dart | 6 +++--- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/flutter/lib/src/material/selectable_text.dart b/packages/flutter/lib/src/material/selectable_text.dart index 6178ed55568..c8ad95b26e9 100644 --- a/packages/flutter/lib/src/material/selectable_text.dart +++ b/packages/flutter/lib/src/material/selectable_text.dart @@ -414,7 +414,7 @@ class SelectableText extends StatefulWidget { /// {@macro flutter.widgets.Text.semanticsLabel} final String? semanticsLabel; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final TextHeightBehavior? textHeightBehavior; /// {@macro flutter.painting.textPainter.textWidthBasis} diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart index 852db6960b4..a1db8bc8971 100644 --- a/packages/flutter/lib/src/painting/image_provider.dart +++ b/packages/flutter/lib/src/painting/image_provider.dart @@ -186,7 +186,7 @@ typedef DecoderCallback = Future Function(Uint8List bytes, {int? cache /// The type argument does not have to be specified when using the type as an /// argument (where any image provider is acceptable). /// -/// The following image formats are supported: {@macro flutter.dart:ui.imageFormats} +/// The following image formats are supported: {@macro dart.ui.imageFormats} /// /// ## Lifecycle of resolving an image /// @@ -938,7 +938,7 @@ class MemoryImage extends ImageProvider { /// The bytes to decode into an image. /// /// The bytes represent encoded image bytes and can be encoded in any of the - /// following supported image formats: {@macro flutter.dart:ui.imageFormats} + /// following supported image formats: {@macro dart.ui.imageFormats} /// /// See also: /// diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart index f12f54f12f5..478f5271872 100644 --- a/packages/flutter/lib/src/painting/text_painter.dart +++ b/packages/flutter/lib/src/painting/text_painter.dart @@ -391,7 +391,7 @@ class TextPainter { markNeedsLayout(); } - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} ui.TextHeightBehavior? get textHeightBehavior => _textHeightBehavior; ui.TextHeightBehavior? _textHeightBehavior; set textHeightBehavior(ui.TextHeightBehavior? value) { diff --git a/packages/flutter/lib/src/rendering/editable.dart b/packages/flutter/lib/src/rendering/editable.dart index c6958e65d4e..f8113e3121b 100644 --- a/packages/flutter/lib/src/rendering/editable.dart +++ b/packages/flutter/lib/src/rendering/editable.dart @@ -547,7 +547,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin, /// The default value of this property is false. bool ignorePointer; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} TextHeightBehavior? get textHeightBehavior => _textPainter.textHeightBehavior; set textHeightBehavior(TextHeightBehavior? value) { if (_textPainter.textHeightBehavior == value) diff --git a/packages/flutter/lib/src/rendering/paragraph.dart b/packages/flutter/lib/src/rendering/paragraph.dart index 01e8ec02cea..52afda8d487 100644 --- a/packages/flutter/lib/src/rendering/paragraph.dart +++ b/packages/flutter/lib/src/rendering/paragraph.dart @@ -288,7 +288,7 @@ class RenderParagraph extends RenderBox markNeedsLayout(); } - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} ui.TextHeightBehavior? get textHeightBehavior => _textPainter.textHeightBehavior; set textHeightBehavior(ui.TextHeightBehavior? value) { if (_textPainter.textHeightBehavior == value) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index b9077e8e6fe..f334af1e58c 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -5561,7 +5561,7 @@ class RichText extends MultiChildRenderObjectWidget { /// {@macro flutter.painting.textPainter.textWidthBasis} final TextWidthBasis textWidthBasis; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final ui.TextHeightBehavior? textHeightBehavior; @override diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index b6f18cfc073..ae31e5db4b9 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -595,7 +595,7 @@ class EditableText extends StatefulWidget { /// {@endtemplate} final bool obscureText; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final TextHeightBehavior? textHeightBehavior; /// {@macro flutter.painting.textPainter.textWidthBasis} diff --git a/packages/flutter/lib/src/widgets/image.dart b/packages/flutter/lib/src/widgets/image.dart index 81ed66599fb..6c16d33387b 100644 --- a/packages/flutter/lib/src/widgets/image.dart +++ b/packages/flutter/lib/src/widgets/image.dart @@ -244,7 +244,7 @@ typedef ImageErrorWidgetBuilder = Widget Function( /// * [new Image.file], for obtaining an image from a [File]. /// * [new Image.memory], for obtaining an image from a [Uint8List]. /// -/// The following image formats are supported: {@macro flutter.dart:ui.imageFormats} +/// The following image formats are supported: {@macro dart.ui.imageFormats} /// /// To automatically perform pixel-density-aware asset resolution, specify the /// image using an [AssetImage] and make sure that a [MaterialApp], [WidgetsApp], @@ -647,7 +647,7 @@ class Image extends StatefulWidget { /// /// The `bytes` argument specifies encoded image bytes, which can be encoded /// in any of the following supported image formats: - /// {@macro flutter.dart:ui.imageFormats} + /// {@macro dart.ui.imageFormats} /// /// The `scale` argument specifies the linear scale factor for drawing this /// image at its intended size and applies to both the width and the height. diff --git a/packages/flutter/lib/src/widgets/implicit_animations.dart b/packages/flutter/lib/src/widgets/implicit_animations.dart index 63a8fdda51d..9725dfad914 100644 --- a/packages/flutter/lib/src/widgets/implicit_animations.dart +++ b/packages/flutter/lib/src/widgets/implicit_animations.dart @@ -1945,7 +1945,7 @@ class AnimatedDefaultTextStyle extends ImplicitlyAnimatedWidget { /// See [TextWidthBasis] for possible values and their implications. final TextWidthBasis textWidthBasis; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final ui.TextHeightBehavior? textHeightBehavior; @override diff --git a/packages/flutter/lib/src/widgets/text.dart b/packages/flutter/lib/src/widgets/text.dart index 6b3f20d22db..a22f4a178c5 100644 --- a/packages/flutter/lib/src/widgets/text.dart +++ b/packages/flutter/lib/src/widgets/text.dart @@ -150,7 +150,7 @@ class DefaultTextStyle extends InheritedTheme { /// See [TextWidthBasis] for possible values and their implications. final TextWidthBasis textWidthBasis; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final ui.TextHeightBehavior? textHeightBehavior; /// The closest instance of this class that encloses the given context. @@ -241,7 +241,7 @@ class DefaultTextHeightBehavior extends InheritedTheme { assert(child != null), super(key: key, child: child); - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final TextHeightBehavior textHeightBehavior; /// The closest instance of this class that encloses the given context. @@ -513,7 +513,7 @@ class Text extends StatelessWidget { /// {@macro flutter.painting.textPainter.textWidthBasis} final TextWidthBasis? textWidthBasis; - /// {@macro flutter.dart:ui.textHeightBehavior} + /// {@macro dart.ui.textHeightBehavior} final ui.TextHeightBehavior? textHeightBehavior; @override