Skip to content

Commit abaf290

Browse files
authored
Further improve the docs for box_painter. (flutter#9936)
1 parent d9165f9 commit abaf290

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,12 @@ class LinearGradient extends Gradient {
838838

839839
/// How this gradient should tile the plane beyond in the region before
840840
/// [begin] and after [end].
841+
///
842+
/// For details, see [TileMode].
843+
///
844+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_clamp_linear.png)
845+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_mirror_linear.png)
846+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_repeated_linear.png)
841847
final TileMode tileMode;
842848

843849
@override
@@ -1053,6 +1059,12 @@ class RadialGradient extends Gradient {
10531059

10541060
/// How this gradient should tile the plane beyond the outer ring at [radius]
10551061
/// pixels from the [center].
1062+
///
1063+
/// For details, see [TileMode].
1064+
///
1065+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_clamp_radial.png)
1066+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_mirror_radial.png)
1067+
/// ![](https://flutter.github.io/assets-for-api-docs/dart-ui/tile_mode_repeated_radial.png)
10561068
final TileMode tileMode;
10571069

10581070
@override

0 commit comments

Comments
 (0)