본문 바로가기
프로그래밍/Flutter

[Flutter] 둥근 버튼 만들기

by YuminK 2022. 4. 3.
SizedBox(
        width: 80,
        height: 80,
        child: Container(
          decoration: BoxDecoration(
            border: Border.all(
                color: Colors.grey,
                width: 4),
            shape: BoxShape.circle,
          ),
          child:
          MaterialButton(
            onPressed: () {
          
            },
            color: Colors.grey,
            child: Text("토익",
              style: const TextStyle(color: Colors.black, fontSize: 18),
            ),
            padding: const EdgeInsets.all(8),
            shape: const CircleBorder(),
          )
        )​

Border 효과를 주고 싶다면 Container를 사용하면 된다.

 

댓글