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를 사용하면 된다.
'프로그래밍 > Flutter' 카테고리의 다른 글
[Flutter] TextFormField 정리 (0) | 2022.04.06 |
---|---|
[Flutter] 스크린 하단에 Widget 배치 (0) | 2022.04.03 |
[Flutter] List<TextSpan> in ChangeNotifier (0) | 2022.04.02 |
[Flutter] RichText (0) | 2022.04.02 |
[Flutter] 같은 행에 Widget 정렬하기 (0) | 2022.03.31 |
댓글