Skip to content

如何给 ClipOval 添加 shadow #13

@wangjing013

Description

@wangjing013
Center(
  child: Container(
    decoration: BoxDecoration(
      shape: BoxShape.circle,
      boxShadow: [
        BoxShadow(
          color: Colors.green,
          blurRadius: 50.0,
          spreadRadius: 10.0,
        )
      ],
    ),
    child: ClipOval(
      child: Image.network(
        'https://i.picsum.photos/id/384/536/354.jpg?hmac=MCKw0mm4RrI3IrF4QicN8divENQ0QthnQp9PVjCGblo',
        width: 100,
        height: 100,
        fit: BoxFit.cover,
      ),
    ),
  ),
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions