Add border to a Container with borderRadius in Flutter

后端 未结 4 720
臣服心动
臣服心动 2021-02-03 21:01
Container(
      child: Text(
          \'This is a Container\',
          textScaleFactor: 2,
          style: TextStyle(color: Colors.black),
      ),

      decoratio         


        
4条回答
  •  清酒与你
    2021-02-03 21:03

    There is an answer here

    Container(
                decoration: BoxDecoration(
                    border: Border.all(
                        color: Color(0xFFF05A22),
                        style: BorderStyle.solid,
                        width: 1.0,
                    ),
                    color: Colors.transparent,
                    borderRadius: BorderRadius.circular(30.0),
                ),
    ),
    

提交回复
热议问题