Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2919572f
Unverified
Commit
2919572f
authored
May 16, 2023
by
Ian Hickson
Committed by
GitHub
May 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor documentation fixes (#126609)
Fixes for grammar, tone, and clarity.
parent
6b6c4bdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
box.dart
packages/flutter/lib/src/rendering/box.dart
+9
-9
No files found.
packages/flutter/lib/src/rendering/box.dart
View file @
2919572f
...
...
@@ -304,7 +304,7 @@ class BoxConstraints extends Constraints {
/// * The size must satisfy these constraints.
/// * The aspect ratio of the returned size matches the aspect ratio of the
/// given size.
/// * The returned size as big as possible while still being equal to or
/// * The returned size
is
as big as possible while still being equal to or
/// smaller than the given size.
Size
constrainSizeAndAttemptToPreserveAspectRatio
(
Size
size
)
{
if
(
isTight
)
{
...
...
@@ -1486,10 +1486,10 @@ abstract class RenderBox extends RenderObject {
///
/// ### Text
///
///
Text is the canonical example of a width-in-height-out algorithm. The
/// `height` argument is therefore ignored.
///
English text is the canonical example of a width-in-height-out algorithm.
///
The
`height` argument is therefore ignored.
///
/// Consider the string "Hello World" The _maximum_ intrinsic width (as
/// Consider the string "Hello World"
.
The _maximum_ intrinsic width (as
/// returned from [computeMaxIntrinsicWidth]) would be the width of the string
/// with no line breaks.
///
...
...
@@ -1498,12 +1498,12 @@ abstract class RenderBox extends RenderObject {
/// might still not overflow. For example, maybe the rendering would put a
/// line-break half-way through the words, as in "Hel⁞lo⁞Wor⁞ld". However,
/// this wouldn't be a _correct_ rendering, and [computeMinIntrinsicWidth] is
///
supposed to render the minimum width that the box could be without failing
/// to _correctly_ paint the contents within itself.
///
defined as returning the minimum width that the box could be without
///
failing
to _correctly_ paint the contents within itself.
///
/// The minimum intrinsic _height_ for a given width
smaller than the minimum
///
intrinsic width could therefore be greater than the minimum intrinsic
/// height for the minimum intrinsic width.
/// The minimum intrinsic _height_ for a given width
_smaller_ than the
///
minimum intrinsic width could therefore be greater than the minimum
///
intrinsic
height for the minimum intrinsic width.
///
/// ### Viewports (e.g. scrolling lists)
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment