From 05c6df6d1f72cd1bbde9e83acc6e862d48e0797e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= <737941+loic-sharma@users.noreply.github.com> Date: Mon, 5 Dec 2022 10:50:06 -1000 Subject: [PATCH] Improve Flex layout comment (#116004) --- packages/flutter/lib/src/rendering/flex.dart | 4 ++-- packages/flutter/lib/src/widgets/basic.dart | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index e1d727c1af..eb23142699 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -235,8 +235,8 @@ typedef _ChildSizingFunction = double Function(RenderBox child, double extent); /// /// Layout for a [RenderFlex] proceeds in six steps: /// -/// 1. Layout each child a null or zero flex factor with unbounded main axis -/// constraints and the incoming cross axis constraints. If the +/// 1. Layout each child with a null or zero flex factor with unbounded main +/// axis constraints and the incoming cross axis constraints. If the /// [crossAxisAlignment] is [CrossAxisAlignment.stretch], instead use tight /// cross axis constraints that match the incoming max extent in the cross /// axis. diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 09ff9b7a56..99179a428e 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -4399,8 +4399,8 @@ class PositionedDirectional extends StatelessWidget { /// /// Layout for a [Flex] proceeds in six steps: /// -/// 1. Layout each child a null or zero flex factor (e.g., those that are not -/// [Expanded]) with unbounded main axis constraints and the incoming +/// 1. Layout each child with a null or zero flex factor (e.g., those that are +/// not [Expanded]) with unbounded main axis constraints and the incoming /// cross axis constraints. If the [crossAxisAlignment] is /// [CrossAxisAlignment.stretch], instead use tight cross axis constraints /// that match the incoming max extent in the cross axis. @@ -4776,8 +4776,8 @@ class Flex extends MultiChildRenderObjectWidget { /// /// Layout for a [Row] proceeds in six steps: /// -/// 1. Layout each child a null or zero flex factor (e.g., those that are not -/// [Expanded]) with unbounded horizontal constraints and the incoming +/// 1. Layout each child with a null or zero flex factor (e.g., those that are +/// not [Expanded]) with unbounded horizontal constraints and the incoming /// vertical constraints. If the [crossAxisAlignment] is /// [CrossAxisAlignment.stretch], instead use tight vertical constraints that /// match the incoming max height. @@ -4967,8 +4967,8 @@ class Row extends Flex { /// /// Layout for a [Column] proceeds in six steps: /// -/// 1. Layout each child a null or zero flex factor (e.g., those that are not -/// [Expanded]) with unbounded vertical constraints and the incoming +/// 1. Layout each child with a null or zero flex factor (e.g., those that are +/// not [Expanded]) with unbounded vertical constraints and the incoming /// horizontal constraints. If the [crossAxisAlignment] is /// [CrossAxisAlignment.stretch], instead use tight horizontal constraints /// that match the incoming max width.