flutter corner radius with transparent background

后端 未结 11 1020
鱼传尺愫
鱼传尺愫 2021-01-30 15:28

Below is my code which I expect to render a round-corner container with a transparent background.

return new Container(
                //padding: const EdgeIn         


        
11条回答
  •  鱼传尺愫
    2021-01-30 16:13

    Scaffold(
      appBar: AppBar(
        title: Text('BMI CALCULATOR'),
      ),
      body: Container(
        height: 200,
        width: 170,
        margin: EdgeInsets.all(15),
        decoration: BoxDecoration(
          color: Color(
            0xFF1D1E33,
          ),
          borderRadius: BorderRadius.circular(5),
        ),
      ),
    );
    

提交回复
热议问题