Flutter give container rounded border

后端 未结 6 1298
温柔的废话
温柔的废话 2020-12-28 12:05

I\'m making container, I gave it a border, but I would be nice to have rounded borders.

This is what I have now (see image)

https://drive.google.com/file/d/1

6条回答
  •  星月不相逢
    2020-12-28 12:52

    You can use ClipRRect Widget :

    ClipRRect (
      borderRadius: BorderRadius.circular(5.0),
      child: Container(
                        height: 25,
                        width: 40,
                        color: const Color(0xffF8742C),
                        child: Align(
                            alignment: Alignment.center,
                            child: Text("Withdraw"))),
              )
    

提交回复
热议问题