From 33395ccd63927bbfcfafe17cd51442f231bfbf36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=AA=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=82=E0=A4=B8=20?= =?UTF-8?q?=E0=A4=95=E0=A5=81=E0=A4=AE=E0=A4=BE=E0=A4=B0=20=E0=A4=A7?= =?UTF-8?q?=E0=A4=A8=E0=A4=96=E0=A4=A1=E0=A4=BC?= <71747203+pdhankhar61@users.noreply.github.com> Date: Tue, 23 Jan 2024 00:08:02 +0530 Subject: [PATCH] Update constraints.md (#10070) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/ui/layout/constraints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/layout/constraints.md b/src/ui/layout/constraints.md index f64e4cc614e..83d546ae5d3 100644 --- a/src/ui/layout/constraints.md +++ b/src/ui/layout/constraints.md @@ -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