Skip to content

Commit 2919572

Browse files
authored
Minor documentation fixes (#126609)
Fixes for grammar, tone, and clarity.
1 parent 6b6c4bd commit 2919572

File tree

1 file changed

+9
-9
lines changed
  • packages/flutter/lib/src/rendering

1 file changed

+9
-9
lines changed

packages/flutter/lib/src/rendering/box.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class BoxConstraints extends Constraints {
304304
/// * The size must satisfy these constraints.
305305
/// * The aspect ratio of the returned size matches the aspect ratio of the
306306
/// given size.
307-
/// * The returned size as big as possible while still being equal to or
307+
/// * The returned size is as big as possible while still being equal to or
308308
/// smaller than the given size.
309309
Size constrainSizeAndAttemptToPreserveAspectRatio(Size size) {
310310
if (isTight) {
@@ -1486,10 +1486,10 @@ abstract class RenderBox extends RenderObject {
14861486
///
14871487
/// ### Text
14881488
///
1489-
/// Text is the canonical example of a width-in-height-out algorithm. The
1490-
/// `height` argument is therefore ignored.
1489+
/// English text is the canonical example of a width-in-height-out algorithm.
1490+
/// The `height` argument is therefore ignored.
14911491
///
1492-
/// Consider the string "Hello World" The _maximum_ intrinsic width (as
1492+
/// Consider the string "Hello World". The _maximum_ intrinsic width (as
14931493
/// returned from [computeMaxIntrinsicWidth]) would be the width of the string
14941494
/// with no line breaks.
14951495
///
@@ -1498,12 +1498,12 @@ abstract class RenderBox extends RenderObject {
14981498
/// might still not overflow. For example, maybe the rendering would put a
14991499
/// line-break half-way through the words, as in "Hel⁞lo⁞Wor⁞ld". However,
15001500
/// this wouldn't be a _correct_ rendering, and [computeMinIntrinsicWidth] is
1501-
/// supposed to render the minimum width that the box could be without failing
1502-
/// to _correctly_ paint the contents within itself.
1501+
/// defined as returning the minimum width that the box could be without
1502+
/// failing to _correctly_ paint the contents within itself.
15031503
///
1504-
/// The minimum intrinsic _height_ for a given width smaller than the minimum
1505-
/// intrinsic width could therefore be greater than the minimum intrinsic
1506-
/// height for the minimum intrinsic width.
1504+
/// The minimum intrinsic _height_ for a given width _smaller_ than the
1505+
/// minimum intrinsic width could therefore be greater than the minimum
1506+
/// intrinsic height for the minimum intrinsic width.
15071507
///
15081508
/// ### Viewports (e.g. scrolling lists)
15091509
///

0 commit comments

Comments
 (0)