GitHub

    Table of contents

  1. Example
  2. Related Links

Flexible

Edit this page

A widget that controls how a child of a Row, Column, or Flex flexes.

Example

Column(
  children: <Widget>[
    Flexible(
      flex: 2,
      child: Container(color: Colors.cyan,),
    ),
    Flexible(
      flex: 3,
      child: Container(color: Colors.teal,),
    ),
    Flexible(
      flex: 1,
      child: Container(color: Colors.indigo,),
    ),
  ],
)

Related Links