Flutter: 矩形边框

      Center(
        child: Material(
          shape: const BeveledRectangleBorder(
            borderRadius: BorderRadius.all(Radius.circular(40)),
            side: BorderSide(color: Colors.black, width: 2),
          ),
          color: Colors.yellow,
          child: Container(
            height: 200,
            width: 200,
          ),
        ),
      ),

posted @ 2019-07-28 09:19  Ajanuw  阅读(73)  评论(0编辑  收藏  举报