Skip to content

Commit 204ecee

Browse files
authored
Linking Higher & Lower Class Docs (flutter#29758)
* Adding linking between higher and lower level classes in the API Docs. ref:flutter#22859 * Fixed links between classes.
1 parent 164dae3 commit 204ecee

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

packages/flutter/lib/src/painting/gradient.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ _ColorsAndStops _interpolateColorsAndStops(
6464
///
6565
/// See also:
6666
///
67-
/// * [dart:ui.Gradient], the class in the [dart:ui] library that is
68-
/// encapsulated by this class and its subclasses.
67+
/// * [Gradient](https://api.flutter.dev/flutter/dart-ui/Gradient-class.html), the class in the [dart:ui] library.
68+
///
6969
@immutable
7070
abstract class Gradient {
7171
/// Initialize the gradient's colors and stops.

packages/flutter/lib/src/painting/strut_style.dart

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ import 'text_style.dart';
4444
/// leading plus ascent. Each line's spacing below the baseline will be at least as
4545
/// tall as the half leading plus descent.
4646
///
47+
/// See also:
48+
///
49+
/// * [StrutStyle](https://api.flutter.dev/flutter/dart-ui/StrutStyle-class.html), the class in the [dart:ui] library.
50+
///
4751
/// ### Fields and their default values.
4852
4953
// ///////////////////////////////////////////////////////////////////////////

packages/flutter/lib/src/painting/text_style.dart

+2
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ const String _kColorBackgroundWarning = 'Cannot provide both a backgroundColor a
292292
/// * [RichText], the widget for showing a paragraph of mix-style text.
293293
/// * [TextSpan], the class that wraps a [TextStyle] for the purposes of
294294
/// passing it to a [RichText].
295+
/// * [TextStyle](https://api.flutter.dev/flutter/dart-ui/TextStyle-class.html), the class in the [dart:ui] library.
296+
///
295297
@immutable
296298
class TextStyle extends Diagnosticable {
297299
/// Creates a text style.

packages/flutter/lib/src/widgets/image.dart

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Future<void> precacheImage(
132132
/// * [new Ink.image], which is the preferred way to show an image in a
133133
/// material application (especially if the image is in a [Material] and will
134134
/// have an [InkWell] on top of it).
135+
/// * [Image](https://api.flutter.dev/flutter/dart-ui/Image-class.html), the class in the [dart:ui] library.
136+
///
135137
class Image extends StatefulWidget {
136138
/// Creates a widget that displays an image.
137139
///

0 commit comments

Comments
 (0)