From ca13add9c8e6240644696091ec1492c802537192 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Wed, 29 May 2019 20:14:52 -0700 Subject: [PATCH] Fix/update several HTML links (#33539) --- packages/flutter/lib/src/foundation/bitfield.dart | 4 ++-- packages/flutter/lib/src/foundation/debug.dart | 4 ++-- packages/flutter/lib/src/gestures/debug.dart | 4 ++-- packages/flutter/lib/src/material/scaffold.dart | 4 ++-- packages/flutter/lib/src/painting/debug.dart | 4 ++-- packages/flutter/lib/src/painting/gradient.dart | 2 +- packages/flutter/lib/src/painting/strut_style.dart | 2 +- packages/flutter/lib/src/rendering/debug.dart | 4 ++-- packages/flutter/lib/src/rendering/flex.dart | 2 +- packages/flutter/lib/src/rendering/layer.dart | 4 ++-- packages/flutter/lib/src/rendering/texture.dart | 4 ++-- packages/flutter/lib/src/scheduler/debug.dart | 4 ++-- packages/flutter/lib/src/widgets/animated_list.dart | 2 +- packages/flutter/lib/src/widgets/debug.dart | 3 +-- packages/flutter/lib/src/widgets/framework.dart | 4 ++-- packages/flutter/lib/src/widgets/image.dart | 2 +- packages/flutter/lib/src/widgets/texture.dart | 4 ++-- 17 files changed, 28 insertions(+), 29 deletions(-) diff --git a/packages/flutter/lib/src/foundation/bitfield.dart b/packages/flutter/lib/src/foundation/bitfield.dart index e39a935150..b4b3b115dd 100644 --- a/packages/flutter/lib/src/foundation/bitfield.dart +++ b/packages/flutter/lib/src/foundation/bitfield.dart @@ -4,7 +4,7 @@ /// The largest SMI value. /// -/// See +/// See /// /// When compiling to JavaScript, this value is not supported since it is /// larger than the maximum safe 32bit integer. @@ -35,7 +35,7 @@ class BitField { final int _length; int _bits; - static const int _smiBits = 62; // see https://www.dartlang.org/articles/numeric-computation/#smis-and-mints + static const int _smiBits = 62; // see https://dart.dev/articles/numeric-computation/#smis-and-mints static const int _allZeros = 0; static const int _allOnes = kMaxUnsignedSMI; // 2^(_kSMIBits+1)-1 diff --git a/packages/flutter/lib/src/foundation/debug.dart b/packages/flutter/lib/src/foundation/debug.dart index f955377f61..c445e977f3 100644 --- a/packages/flutter/lib/src/foundation/debug.dart +++ b/packages/flutter/lib/src/foundation/debug.dart @@ -19,8 +19,8 @@ import 'print.dart'; /// override [debugPrint] themselves and want to check that their own custom /// value wasn't overridden by a test. /// -/// See [https://docs.flutter.io/flutter/foundation/foundation-library.html] for -/// a complete list. +/// See [the foundation library](foundation/foundation-library.html) +/// for a complete list. bool debugAssertAllFoundationVarsUnset(String reason, { DebugPrintCallback debugPrintOverride = debugPrintThrottled }) { assert(() { if (debugPrint != debugPrintOverride || diff --git a/packages/flutter/lib/src/gestures/debug.dart b/packages/flutter/lib/src/gestures/debug.dart index 797b81c4cb..ef18d5060a 100644 --- a/packages/flutter/lib/src/gestures/debug.dart +++ b/packages/flutter/lib/src/gestures/debug.dart @@ -54,8 +54,8 @@ bool debugPrintRecognizerCallbacksTrace = false; /// This function is used by the test framework to ensure that debug variables /// haven't been inadvertently changed. /// -/// See [https://docs.flutter.io/flutter/gestures/gestures-library.html] for -/// a complete list. +/// See [the gestures library](gestures/gestures-library.html) for a complete +/// list. bool debugAssertAllGesturesVarsUnset(String reason) { assert(() { if (debugPrintHitTestResults || diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 29b5095567..8170c32d53 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -1193,7 +1193,7 @@ class Scaffold extends StatefulWidget { 'There are several ways to avoid this problem. The simplest is to use a Builder to get a ' 'context that is "under" the Scaffold. For an example of this, please see the ' 'documentation for Scaffold.of():\n' - ' https://docs.flutter.io/flutter/material/Scaffold/of.html\n' + ' https://api.flutter.dev/flutter/material/Scaffold/of.html\n' 'A more efficient solution is to split your build function into several widgets. This ' 'introduces a new context from which you can obtain the Scaffold. In this solution, ' 'you would have an outer widget that creates the Scaffold populated by instances of ' @@ -1236,7 +1236,7 @@ class Scaffold extends StatefulWidget { 'There are several ways to avoid this problem. The simplest is to use a Builder to get a ' 'context that is "under" the Scaffold. For an example of this, please see the ' 'documentation for Scaffold.of():\n' - ' https://docs.flutter.io/flutter/material/Scaffold/of.html\n' + ' https://api.flutter.dev/flutter/material/Scaffold/of.html\n' 'A more efficient solution is to split your build function into several widgets. This ' 'introduces a new context from which you can obtain the Scaffold. In this solution, ' 'you would have an outer widget that creates the Scaffold populated by instances of ' diff --git a/packages/flutter/lib/src/painting/debug.dart b/packages/flutter/lib/src/painting/debug.dart index 8c529cdad9..ad5abeb4c2 100644 --- a/packages/flutter/lib/src/painting/debug.dart +++ b/packages/flutter/lib/src/painting/debug.dart @@ -34,8 +34,8 @@ HttpClientProvider debugNetworkImageHttpClientProvider; /// This function is used by the test framework to ensure that debug variables /// haven't been inadvertently changed. /// -/// See for -/// a complete list. +/// See [the painting library](painting/painting-library.html) for a complete +/// list. /// /// The `debugDisableShadowsOverride` argument can be provided to override /// the expected value for [debugDisableShadows]. (This exists because the diff --git a/packages/flutter/lib/src/painting/gradient.dart b/packages/flutter/lib/src/painting/gradient.dart index df4043a6a5..3c64a0d52d 100644 --- a/packages/flutter/lib/src/painting/gradient.dart +++ b/packages/flutter/lib/src/painting/gradient.dart @@ -64,7 +64,7 @@ _ColorsAndStops _interpolateColorsAndStops( /// /// See also: /// -/// * [Gradient](https://api.flutter.dev/flutter/dart-ui/Gradient-class.html), the class in the [dart:ui] library. +/// * [Gradient](dart-ui/Gradient-class.html), the class in the [dart:ui] library. /// @immutable abstract class Gradient { diff --git a/packages/flutter/lib/src/painting/strut_style.dart b/packages/flutter/lib/src/painting/strut_style.dart index f1a089601b..89d016491f 100644 --- a/packages/flutter/lib/src/painting/strut_style.dart +++ b/packages/flutter/lib/src/painting/strut_style.dart @@ -46,7 +46,7 @@ import 'text_style.dart'; /// /// See also: /// -/// * [StrutStyle](https://api.flutter.dev/flutter/dart-ui/StrutStyle-class.html), the class in the [dart:ui] library. +/// * [StrutStyle](dart-ui/StrutStyle-class.html), the class in the [dart:ui] library. /// /// ### Fields and their default values. diff --git a/packages/flutter/lib/src/rendering/debug.dart b/packages/flutter/lib/src/rendering/debug.dart index f7a6eb89af..e48e98c943 100644 --- a/packages/flutter/lib/src/rendering/debug.dart +++ b/packages/flutter/lib/src/rendering/debug.dart @@ -243,8 +243,8 @@ void debugPaintPadding(Canvas canvas, Rect outerRect, Rect innerRect, { double o /// This function is used by the test framework to ensure that debug variables /// haven't been inadvertently changed. /// -/// See for -/// a complete list. +/// See [the rendering library](rendering/rendering-library.html) for a complete +/// list. /// /// The `debugCheckIntrinsicSizesOverride` argument can be provided to override /// the expected value for [debugCheckIntrinsicSizes]. (This exists because the diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index 13fb0b1643..e2abfe9cc5 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -705,7 +705,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin('The creator information is set to', debugCreator, style: DiagnosticsTreeStyle.errorProperty) diff --git a/packages/flutter/lib/src/rendering/layer.dart b/packages/flutter/lib/src/rendering/layer.dart index 09f1b4c819..e6fcd883bd 100644 --- a/packages/flutter/lib/src/rendering/layer.dart +++ b/packages/flutter/lib/src/rendering/layer.dart @@ -297,9 +297,9 @@ class PictureLayer extends Layer { /// /// See also: /// -/// * +/// * /// for how to create and manage backend textures on Android. -/// * +/// * /// for how to create and manage backend textures on iOS. class TextureLayer extends Layer { /// Creates a texture layer bounded by [rect] and with backend texture diff --git a/packages/flutter/lib/src/rendering/texture.dart b/packages/flutter/lib/src/rendering/texture.dart index 32f594e8f6..4f83c1e750 100644 --- a/packages/flutter/lib/src/rendering/texture.dart +++ b/packages/flutter/lib/src/rendering/texture.dart @@ -30,9 +30,9 @@ import 'object.dart'; /// /// See also: /// -/// * +/// * /// for how to create and manage backend textures on Android. -/// * +/// * /// for how to create and manage backend textures on iOS. class TextureBox extends RenderBox { /// Creates a box backed by the texture identified by [textureId]. diff --git a/packages/flutter/lib/src/scheduler/debug.dart b/packages/flutter/lib/src/scheduler/debug.dart index 01b851b682..5da35b73c5 100644 --- a/packages/flutter/lib/src/scheduler/debug.dart +++ b/packages/flutter/lib/src/scheduler/debug.dart @@ -53,8 +53,8 @@ bool debugPrintScheduleFrameStacks = false; /// This function is used by the test framework to ensure that debug variables /// haven't been inadvertently changed. /// -/// See [https://docs.flutter.io/flutter/scheduler/scheduler-library.html] for -/// a complete list. +/// See [the scheduler library](scheduler/scheduler-library.html) for a complete +/// list. bool debugAssertAllSchedulerVarsUnset(String reason) { assert(() { if (debugPrintBeginFrameBanner || diff --git a/packages/flutter/lib/src/widgets/animated_list.dart b/packages/flutter/lib/src/widgets/animated_list.dart index f792eb5ece..77de2c3631 100644 --- a/packages/flutter/lib/src/widgets/animated_list.dart +++ b/packages/flutter/lib/src/widgets/animated_list.dart @@ -174,7 +174,7 @@ class AnimatedList extends StatefulWidget { 'This can happen when the context provided is from the same StatefulWidget that ' 'built the AnimatedList. Please see the AnimatedList documentation for examples ' 'of how to refer to an AnimatedListState object: ' - ' https://docs.flutter.io/flutter/widgets/AnimatedListState-class.html \n' + ' https://api.flutter.dev/flutter/widgets/AnimatedListState-class.html \n' 'The context used was:\n' ' $context' ); diff --git a/packages/flutter/lib/src/widgets/debug.dart b/packages/flutter/lib/src/widgets/debug.dart index 8dd64368ad..f2aa211702 100644 --- a/packages/flutter/lib/src/widgets/debug.dart +++ b/packages/flutter/lib/src/widgets/debug.dart @@ -293,8 +293,7 @@ void debugWidgetBuilderValue(Widget widget, Widget built) { /// This function is used by the test framework to ensure that debug variables /// haven't been inadvertently changed. /// -/// See [https://docs.flutter.io/flutter/widgets/widgets-library.html] for -/// a complete list. +/// See [the widgets library](widgets/widgets-library.html) for a complete list. bool debugAssertAllWidgetVarsUnset(String reason) { assert(() { if (debugPrintRebuildDirtyWidgets || diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index bb1a0abede..c8fbdfc990 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -2581,7 +2581,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { // // See also: // - // * https://www.dartlang.org/articles/dart-vm/numeric-computation, which + // * https://dart.dev/articles/dart-vm/numeric-computation, which // explains how numbers are represented in Dart. @override int get hashCode => _cachedHash; @@ -3250,7 +3250,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'If you need some sizing information during build to decide which ' 'widgets to build, consider using a LayoutBuilder widget, which can ' 'tell you the layout constraints at a given location in the tree. See ' - ' ' + ' ' 'for more details.\n' '\n' 'The size getter was called for the following element:\n' diff --git a/packages/flutter/lib/src/widgets/image.dart b/packages/flutter/lib/src/widgets/image.dart index e8741f3c0f..e6ae97d94c 100644 --- a/packages/flutter/lib/src/widgets/image.dart +++ b/packages/flutter/lib/src/widgets/image.dart @@ -213,7 +213,7 @@ typedef ImageLoadingBuilder = Widget Function( /// * [new Ink.image], which is the preferred way to show an image in a /// material application (especially if the image is in a [Material] and will /// have an [InkWell] on top of it). -/// * [Image](https://api.flutter.dev/flutter/dart-ui/Image-class.html), the class in the [dart:ui] library. +/// * [Image](dart-ui/Image-class.html), the class in the [dart:ui] library. /// class Image extends StatefulWidget { /// Creates a widget that displays an image. diff --git a/packages/flutter/lib/src/widgets/texture.dart b/packages/flutter/lib/src/widgets/texture.dart index 2e97f8eaed..527f326c5e 100644 --- a/packages/flutter/lib/src/widgets/texture.dart +++ b/packages/flutter/lib/src/widgets/texture.dart @@ -28,9 +28,9 @@ import 'framework.dart'; /// /// See also: /// -/// * +/// * /// for how to create and manage backend textures on Android. -/// * +/// * /// for how to create and manage backend textures on iOS. class Texture extends LeafRenderObjectWidget { /// Creates a widget backed by the texture identified by [textureId].