GitHub

    Table of contents

  1. 示例
  2. 相关链接

Stack

Edit this page

A widget that positions its children relative to the edges of its box.

示例

Stack(
  children: <Widget>[
    Container(
      width: 100,
      height: 100,
      color: Colors.red,
    ),
    Container(
      width: 90,
      height: 90,
      color: Colors.green,
    ),
    Container(
      width: 80,
      height: 80,
      color: Colors.blue,
    ),
  ],
)

相关链接