Skip to content

Commit 5f8ae42

Browse files
Piinksdnfield
authored andcommitted
Linking Higher & Lower Class Docs (flutter#8265)
* Linking lower layer classes to higher layers in API Docs.
1 parent f4d9949 commit 5f8ae42

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

lib/ui/painting.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,11 @@ class _ImageInfo {
15201520
///
15211521
/// To draw an [Image], use one of the methods on the [Canvas] class, such as
15221522
/// [Canvas.drawImage].
1523+
///
1524+
/// See also:
1525+
///
1526+
/// * [Image], the class in the [widgets] library that encapsulates this class.
1527+
///
15231528
@pragma('vm:entry-point')
15241529
class Image extends NativeFieldWrapperClass2 {
15251530
// This class is created by the engine, and should not be instantiated
@@ -2678,6 +2683,11 @@ Float32List _encodeTwoPoints(Offset pointA, Offset pointB) {
26782683
///
26792684
/// There are several types of gradients, represented by the various constructors
26802685
/// on this class.
2686+
///
2687+
/// See also:
2688+
///
2689+
/// * [Gradient], the class in the [painting] library that encapsulates this class.
2690+
///
26812691
class Gradient extends Shader {
26822692

26832693
void _constructor() native 'Gradient_constructor';

lib/ui/text.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ Int32List _encodeTextStyle(
352352
}
353353

354354
/// An opaque object that determines the size, position, and rendering of text.
355+
///
356+
/// See also:
357+
///
358+
/// * [TextStyle], the class in the [painting] library that encapsulates this class.
359+
///
355360
class TextStyle {
356361
/// Creates a new TextStyle object.
357362
///
@@ -792,6 +797,10 @@ ByteData _encodeStrut(
792797
return ByteData.view(data.buffer, 0, byteCount);
793798
}
794799

800+
/// See also:
801+
///
802+
/// * [StrutStyle], the class in the [painting] library that encapsulates this class.
803+
///
795804
class StrutStyle {
796805
/// Creates a new StrutStyle object.
797806
///

0 commit comments

Comments
 (0)