圆角

    Container(
    decoration: BoxDecoration(
    color: Colors.white,
    shape: BoxShape.rectangle,
    borderRadius: BorderRadius.all(Radius.circular(8))),
    child: Text(‘圆角’),
    )

    image.png

    圆角+阴影

    Container(
    decoration: BoxDecoration(
    color: Colors.white,
    shape: BoxShape.rectangle,
    borderRadius: BorderRadius.all(Radius.circular(8)),
    boxShadow: [BoxShadow(
    color: Colors.primaries[0].withAlpha(25),
    blurRadius: 8,
    offset: Offset(0, 8))],),
    child: Text(‘圆角’),
    )

    image.png