Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 05c6df6

Browse files
authored
Improve Flex layout comment (#116004)
1 parent 49d0b5b commit 05c6df6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ typedef _ChildSizingFunction = double Function(RenderBox child, double extent);
235235
///
236236
/// Layout for a [RenderFlex] proceeds in six steps:
237237
///
238-
/// 1. Layout each child a null or zero flex factor with unbounded main axis
239-
/// constraints and the incoming cross axis constraints. If the
238+
/// 1. Layout each child with a null or zero flex factor with unbounded main
239+
/// axis constraints and the incoming cross axis constraints. If the
240240
/// [crossAxisAlignment] is [CrossAxisAlignment.stretch], instead use tight
241241
/// cross axis constraints that match the incoming max extent in the cross
242242
/// axis.

packages/flutter/lib/src/widgets/basic.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -4399,8 +4399,8 @@ class PositionedDirectional extends StatelessWidget {
43994399
///
44004400
/// Layout for a [Flex] proceeds in six steps:
44014401
///
4402-
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
4403-
/// [Expanded]) with unbounded main axis constraints and the incoming
4402+
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
4403+
/// not [Expanded]) with unbounded main axis constraints and the incoming
44044404
/// cross axis constraints. If the [crossAxisAlignment] is
44054405
/// [CrossAxisAlignment.stretch], instead use tight cross axis constraints
44064406
/// that match the incoming max extent in the cross axis.
@@ -4776,8 +4776,8 @@ class Flex extends MultiChildRenderObjectWidget {
47764776
///
47774777
/// Layout for a [Row] proceeds in six steps:
47784778
///
4779-
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
4780-
/// [Expanded]) with unbounded horizontal constraints and the incoming
4779+
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
4780+
/// not [Expanded]) with unbounded horizontal constraints and the incoming
47814781
/// vertical constraints. If the [crossAxisAlignment] is
47824782
/// [CrossAxisAlignment.stretch], instead use tight vertical constraints that
47834783
/// match the incoming max height.
@@ -4967,8 +4967,8 @@ class Row extends Flex {
49674967
///
49684968
/// Layout for a [Column] proceeds in six steps:
49694969
///
4970-
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
4971-
/// [Expanded]) with unbounded vertical constraints and the incoming
4970+
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
4971+
/// not [Expanded]) with unbounded vertical constraints and the incoming
49724972
/// horizontal constraints. If the [crossAxisAlignment] is
49734973
/// [CrossAxisAlignment.stretch], instead use tight horizontal constraints
49744974
/// that match the incoming max width.

0 commit comments

Comments
 (0)