Skip to content

Commit

Permalink
Update constraints.md (flutter#10070)
Browse files Browse the repository at this point in the history
Updated the values of constraints for Widget.

_Description of what this PR is changing or adding, and why:_

_Issues fixed by this PR (if any):_

## Presubmit checklist

- [x] This PR doesn’t contain automatically generated corrections
(Grammarly or similar).
- [x] This PR follows the [Google Developer Documentation Style
Guidelines](https://developers.google.com/style) — for example, it
doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person).
- [x] This PR uses [semantic line
breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks)
of 80 characters or fewer.

Co-authored-by: Brett Morgan <brettmorgan@google.com>
  • Loading branch information
2 people authored and atsansone committed Jan 24, 2024
1 parent 454213c commit 33395cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/layout/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ The negotiation goes something like this:

**Widget**: "Hey parent, what are my constraints?"

**Parent**: "You must be from `80` to `300` pixels wide,
and `30` to `85` tall."
**Parent**: "You must be from `0` to `300` pixels wide,
and `0` to `85` tall."

**Widget**: "Hmmm, since I want to have `5` pixels of padding,
then my children can have at most `290` pixels of width
Expand Down

0 comments on commit 33395cc

Please sign in to comment.