Unverified Commit ab06d033 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Fixed a typo in the Expanded API doc (#30563)

parent 30678259
...@@ -4297,10 +4297,11 @@ class Flexible extends ParentDataWidget<Flex> { ...@@ -4297,10 +4297,11 @@ class Flexible extends ParentDataWidget<Flex> {
} }
} }
/// A widget that expands a child of a [Row], [Column], or [Flex]. /// A widget that expands a child of a [Row], [Column], or [Flex]
/// so that the child fills the available space.
/// ///
/// Using an [Expanded] widget makes a child of a [Row], [Column], or [Flex] /// Using an [Expanded] widget makes a child of a [Row], [Column], or [Flex]
/// expand to fill the available space in the main axis (e.g., horizontally for /// expand to fill the available space along the main axis (e.g., horizontally for
/// a [Row] or vertically for a [Column]). If multiple children are expanded, /// a [Row] or vertically for a [Column]). If multiple children are expanded,
/// the available space is divided among them according to the [flex] factor. /// the available space is divided among them according to the [flex] factor.
/// ///
...@@ -4395,7 +4396,8 @@ class Flexible extends ParentDataWidget<Flex> { ...@@ -4395,7 +4396,8 @@ class Flexible extends ParentDataWidget<Flex> {
/// * The [catalog of layout widgets](https://flutter.dev/widgets/layout/). /// * The [catalog of layout widgets](https://flutter.dev/widgets/layout/).
class Expanded extends Flexible { class Expanded extends Flexible {
/// Creates a widget that expands a child of a [Row], [Column], or [Flex] /// Creates a widget that expands a child of a [Row], [Column], or [Flex]
/// expand to fill the available space in the main axis. /// so that the child fills the available space along the flex widget's
/// main axis.
const Expanded({ const Expanded({
Key key, Key key,
int flex = 1, int flex = 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment