GitHub

    Table of contents

  1. 示例
  2. 相关链接

ClipOval

Edit this page

A widget that clips its child using an oval.

示例

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

ClipOval(
  child: SizedBox(
    width: 120,
    height: 100,
    child: Image.network(_imageUrl, fit: BoxFit.cover,),
  ),
)

相关链接