728x90
반응형
체크박스를 사용하는 경우가 상당히 많은데, 커스텀해서 사용하는 방법을 알아보자.
Checkbox(
value: true,
onChanged: (bool? value) {
print('체크박스');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
checkColor: Colors.white,
// fillColor: MaterialStateProperty.resolveWith(getColor),
activeColor: Color(0xff06bbfb),
materialTapTargetSize: MaterialTapTargetSize.padded,
),
Checkbox에 shape을 이용하면 사각형 형태가 아래와 같이 구 형태로 바뀌게 된다.
How to create a round CheckBox in Flutter ? Or change the CheckBox's style , such as selected image in Flutter?
I want to create a round CheckBox like this I've tried multiple variations of this, but none of them seem to work. Including I tried to use ClipRRect . Because there are more code, I only selec...
stackoverflow.com
반응형
'개발자의 공부방 > 모바일' 카테고리의 다른 글
Flutter] DropDownbutton의 화살표를 위치를 바꿔보자. (0) | 2022.03.15 |
---|---|
Flutter] Dropbutton의 underline을 없애보자. (0) | 2022.03.15 |
Flutter] DropdownButton을 눌렀을 때 목록 크기를 맞추는 방법. (0) | 2022.03.15 |
Flutter] DropdownButton으로 DropBox 구현하기 (0) | 2022.03.15 |
Flutter] ToggleButtons으로 선택 버튼 구현하기 (0) | 2022.03.15 |