GitHub

    Table of contents

  1. 示例
  2. 相关链接

PhysicalModel

Edit this page

A widget representing a physical layer that clips its children to a shape.

示例

PhysicalModel(
  elevation: 6.0,
  shape: BoxShape.rectangle,
  shadowColor: Colors.black,
  color: Colors.white,
  child: Container(
    height: 120.0,
    width: 120.0,
    color: Colors.blue[50],
    child: FlutterLogo(
      size: 60,
    ),
  ),
)

相关链接