GitHub

    Table of contents

  1. Example
  2. Related Links

PhysicalModel

Edit this page

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

Example

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,
    ),
  ),
)

Related Links