🙌🏻 立即获取「wordway」,由社区驱动的背单词应用,基于 Flutter 开发。🙌🏻

ClipRect

Edit this page

A widget that clips its child using a rectangle.

Example

String _imageUrl = 'https://images.unsplash.com/photo-1565898835704-3d6be4a2c98c?fit=crop&w=200&q=60';

ClipRect(
  child: Align(
    alignment: Alignment.bottomCenter,
    heightFactor: 0.8,
    child: Image.network(_imageUrl),
  ),
)

Related Links