Skip to content

Commit b9a6ede

Browse files
authored
Fix a number of broken doc comment references (flutter#150540)
Work towards flutter#150562
1 parent acf1fb6 commit b9a6ede

File tree

16 files changed

+37
-31
lines changed

16 files changed

+37
-31
lines changed

packages/flutter/lib/src/foundation/diagnostics.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:developer';
6+
library;
7+
58
import 'dart:math' as math;
69
import 'dart:ui' show clampDouble;
710

packages/flutter/lib/src/foundation/isolates.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:isolate';
6+
library;
7+
58
import 'dart:async';
69

710
import '_isolates_io.dart'

packages/flutter/lib/src/gestures/monodrag.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
146146
///
147147
/// See also:
148148
///
149-
/// * [allowedButtonsFilter], which decides which button will be allowed.
149+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
150150
/// * [DragDownDetails], which is passed as an argument to this callback.
151151
GestureDragDownCallback? onDown;
152152

@@ -161,7 +161,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
161161
///
162162
/// See also:
163163
///
164-
/// * [allowedButtonsFilter], which decides which button will be allowed.
164+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
165165
/// * [DragStartDetails], which is passed as an argument to this callback.
166166
GestureDragStartCallback? onStart;
167167

@@ -183,7 +183,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
183183
///
184184
/// See also:
185185
///
186-
/// * [allowedButtonsFilter], which decides which button will be allowed.
186+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
187187
/// * [DragUpdateDetails], which is passed as an argument to this callback.
188188
GestureDragUpdateCallback? onUpdate;
189189

@@ -206,15 +206,15 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
206206
///
207207
/// See also:
208208
///
209-
/// * [allowedButtonsFilter], which decides which button will be allowed.
209+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
210210
/// * [DragEndDetails], which is passed as an argument to this callback.
211211
GestureDragEndCallback? onEnd;
212212

213213
/// The pointer that previously triggered [onDown] did not complete.
214214
///
215215
/// See also:
216216
///
217-
/// * [allowedButtonsFilter], which decides which button will be allowed.
217+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
218218
GestureDragCancelCallback? onCancel;
219219

220220
/// The minimum distance an input pointer drag must have moved

packages/flutter/lib/src/gestures/multitap.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class DoubleTapGestureRecognizer extends GestureRecognizer {
161161
///
162162
/// See also:
163163
///
164-
/// * [allowedButtonsFilter], which decides which button will be allowed.
164+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
165165
/// * [TapDownDetails], which is passed as an argument to this callback.
166166
/// * [GestureDetector.onDoubleTapDown], which exposes this callback.
167167
GestureTapDownCallback? onDoubleTapDown;
@@ -174,7 +174,7 @@ class DoubleTapGestureRecognizer extends GestureRecognizer {
174174
///
175175
/// See also:
176176
///
177-
/// * [allowedButtonsFilter], which decides which button will be allowed.
177+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
178178
/// * [GestureDetector.onDoubleTap], which exposes this callback.
179179
GestureDoubleTapCallback? onDoubleTap;
180180

@@ -188,7 +188,7 @@ class DoubleTapGestureRecognizer extends GestureRecognizer {
188188
///
189189
/// See also:
190190
///
191-
/// * [allowedButtonsFilter], which decides which button will be allowed.
191+
/// * `allowedButtonsFilter`, which decides which button will be allowed.
192192
/// * [GestureDetector.onDoubleTapCancel], which exposes this callback.
193193
GestureTapCancelCallback? onDoubleTapCancel;
194194

packages/flutter/lib/src/gestures/tap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ abstract class BaseTapGestureRecognizer extends PrimaryPointerGestureRecognizer
354354
/// no-op.
355355
///
356356
/// {@template flutter.gestures.tap.TapGestureRecognizer.allowedButtonsFilter}
357-
/// The [allowedButtonsFilter] argument only gives this recognizer the
357+
/// The `allowedButtonsFilter` argument only gives this recognizer the
358358
/// ability to limit the buttons it accepts. It does not provide the
359359
/// ability to recognize any buttons beyond the ones it already accepts:
360360
/// kPrimaryButton, kSecondaryButton or kTertiaryButton. Therefore, a

packages/flutter/lib/src/material/badge.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Badge extends StatelessWidget {
7474
/// The badge's fill color.
7575
///
7676
/// Defaults to the [BadgeTheme]'s background color, or
77-
/// [ColorScheme.errorColor] if the theme value is null.
77+
/// [ColorScheme.error] if the theme value is null.
7878
final Color? backgroundColor;
7979

8080
/// The color of the badge's [label] text.

packages/flutter/lib/src/material/button_theme.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class ButtonThemeData with Diagnosticable {
238238
///
239239
/// See also:
240240
///
241-
/// * [getPadding], which is used to calculate padding for the [button]'s
241+
/// * [getPadding], which is used to calculate padding for the button's
242242
/// child (typically the button's label).
243243
EdgeInsetsGeometry get padding {
244244
return _padding ?? switch (textTheme) {
@@ -261,7 +261,7 @@ class ButtonThemeData with Diagnosticable {
261261
///
262262
/// See also:
263263
///
264-
/// * [getShape], which is used to calculate the shape of the [button]'s
264+
/// * [getShape], which is used to calculate the shape of the button's
265265
/// [Material].
266266
ShapeBorder get shape {
267267
return _shape ?? switch (textTheme) {

packages/flutter/lib/src/material/ink_sparkle.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import 'material.dart';
2727
/// The [controller] argument is typically obtained via
2828
/// `Material.of(context)`.
2929
///
30-
/// If [containedInkWell] is true, then the effect will be sized to fit
30+
/// If `containedInkWell` is true, then the effect will be sized to fit
3131
/// the well rectangle, and clipped to it when drawn. The well
32-
/// rectangle is the box returned by [rectCallback], if provided, or
32+
/// rectangle is the box returned by `rectCallback`, if provided, or
3333
/// otherwise is the bounds of the [referenceBox].
3434
///
35-
/// If [containedInkWell] is false, then [rectCallback] should be null.
35+
/// If `containedInkWell` is false, then `rectCallback` should be null.
3636
/// The ink ripple is clipped only to the edges of the [Material].
3737
/// This is the default.
3838
///
@@ -249,14 +249,14 @@ class InkSparkle extends InteractiveInkFeature {
249249
/// Used to specify this type of ink splash for an [InkWell], [InkResponse],
250250
/// material [Theme], or [ButtonStyle].
251251
///
252-
/// Since no [turbulenceSeed] is passed, the effect will be random for
252+
/// Since no `turbulenceSeed` is passed, the effect will be random for
253253
/// subsequent presses in the same position.
254254
static const InteractiveInkFeatureFactory splashFactory = _InkSparkleFactory();
255255

256256
/// Used to specify this type of ink splash for an [InkWell], [InkResponse],
257257
/// material [Theme], or [ButtonStyle].
258258
///
259-
/// Since a [turbulenceSeed] is passed, the effect will not be random for
259+
/// Since a `turbulenceSeed` is passed, the effect will not be random for
260260
/// subsequent presses in the same position. This can be used for testing.
261261
static const InteractiveInkFeatureFactory constantTurbulenceSeedSplashFactory = _InkSparkleFactory.constantTurbulenceSeed();
262262

packages/flutter/lib/src/material/switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Switch extends StatelessWidget {
138138
///
139139
/// To provide a custom switch theme that's only used by this factory
140140
/// constructor, add a custom `Adaptation<SwitchThemeData>` class to
141-
/// [ThemeData.adaptations]. This can be useful in situations where you don't
141+
/// `ThemeData.adaptations`. This can be useful in situations where you don't
142142
/// want the overall [ThemeData.switchTheme] to apply when this adaptive
143143
/// constructor is used.
144144
///

packages/flutter/lib/src/material/text_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class TextButton extends ButtonStyleButton {
376376
/// * `splashFactory` - Theme.splashFactory
377377
///
378378
/// For the [TextButton.icon] factory, the end (generally the right) value of
379-
/// [padding] is increased from 12 to 16.
379+
/// `padding` is increased from 12 to 16.
380380
/// {@endtemplate}
381381
@override
382382
ButtonStyle defaultStyleOf(BuildContext context) {

0 commit comments

Comments
 (0)