mirror of
https://github.com/flutter/flutter
synced 2024-10-16 05:02:57 +00:00
Improve Flex layout comment (#116004)
This commit is contained in:
parent
49d0b5b396
commit
05c6df6d1f
|
@ -235,8 +235,8 @@ typedef _ChildSizingFunction = double Function(RenderBox child, double extent);
|
||||||
///
|
///
|
||||||
/// Layout for a [RenderFlex] proceeds in six steps:
|
/// Layout for a [RenderFlex] proceeds in six steps:
|
||||||
///
|
///
|
||||||
/// 1. Layout each child a null or zero flex factor with unbounded main axis
|
/// 1. Layout each child with a null or zero flex factor with unbounded main
|
||||||
/// constraints and the incoming cross axis constraints. If the
|
/// axis constraints and the incoming cross axis constraints. If the
|
||||||
/// [crossAxisAlignment] is [CrossAxisAlignment.stretch], instead use tight
|
/// [crossAxisAlignment] is [CrossAxisAlignment.stretch], instead use tight
|
||||||
/// cross axis constraints that match the incoming max extent in the cross
|
/// cross axis constraints that match the incoming max extent in the cross
|
||||||
/// axis.
|
/// axis.
|
||||||
|
|
|
@ -4399,8 +4399,8 @@ class PositionedDirectional extends StatelessWidget {
|
||||||
///
|
///
|
||||||
/// Layout for a [Flex] proceeds in six steps:
|
/// Layout for a [Flex] proceeds in six steps:
|
||||||
///
|
///
|
||||||
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
|
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
|
||||||
/// [Expanded]) with unbounded main axis constraints and the incoming
|
/// not [Expanded]) with unbounded main axis constraints and the incoming
|
||||||
/// cross axis constraints. If the [crossAxisAlignment] is
|
/// cross axis constraints. If the [crossAxisAlignment] is
|
||||||
/// [CrossAxisAlignment.stretch], instead use tight cross axis constraints
|
/// [CrossAxisAlignment.stretch], instead use tight cross axis constraints
|
||||||
/// that match the incoming max extent in the cross axis.
|
/// 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:
|
/// Layout for a [Row] proceeds in six steps:
|
||||||
///
|
///
|
||||||
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
|
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
|
||||||
/// [Expanded]) with unbounded horizontal constraints and the incoming
|
/// not [Expanded]) with unbounded horizontal constraints and the incoming
|
||||||
/// vertical constraints. If the [crossAxisAlignment] is
|
/// vertical constraints. If the [crossAxisAlignment] is
|
||||||
/// [CrossAxisAlignment.stretch], instead use tight vertical constraints that
|
/// [CrossAxisAlignment.stretch], instead use tight vertical constraints that
|
||||||
/// match the incoming max height.
|
/// match the incoming max height.
|
||||||
|
@ -4967,8 +4967,8 @@ class Row extends Flex {
|
||||||
///
|
///
|
||||||
/// Layout for a [Column] proceeds in six steps:
|
/// Layout for a [Column] proceeds in six steps:
|
||||||
///
|
///
|
||||||
/// 1. Layout each child a null or zero flex factor (e.g., those that are not
|
/// 1. Layout each child with a null or zero flex factor (e.g., those that are
|
||||||
/// [Expanded]) with unbounded vertical constraints and the incoming
|
/// not [Expanded]) with unbounded vertical constraints and the incoming
|
||||||
/// horizontal constraints. If the [crossAxisAlignment] is
|
/// horizontal constraints. If the [crossAxisAlignment] is
|
||||||
/// [CrossAxisAlignment.stretch], instead use tight horizontal constraints
|
/// [CrossAxisAlignment.stretch], instead use tight horizontal constraints
|
||||||
/// that match the incoming max width.
|
/// that match the incoming max width.
|
||||||
|
|
Loading…
Reference in a new issue