728x90
반응형
...생략
DropdownButton(
underline: SizedBox.shrink(),
)
...생략
드롭버튼을 만들면 화면에 기본적으로 언더라인이 붙는다.
이 부분을 삭제하는데 많은 방법이 있는 것 같으나 간단하게 위 방법을 선택했다.
참조 : https://stackoverflow.com/questions/53588785/remove-underline-from-dropdownbuttonformfield
Remove underline from DropdownButtonFormField
How can I remove the underline from DropdownButtonFormField (check photo below), I have tried various combinations of options with InputDecortaion couldn't find any way. SizedBox( width: 100.0,
stackoverflow.com
반응형
'개발자의 공부방 > 모바일' 카테고리의 다른 글
Flutter] DropDownButton 위젯 properties (0) | 2022.03.15 |
---|---|
Flutter] DropDownbutton의 화살표를 위치를 바꿔보자. (0) | 2022.03.15 |
Flutter] Checkbox를 동그라미로 커스텀해보자. (0) | 2022.03.15 |
Flutter] DropdownButton을 눌렀을 때 목록 크기를 맞추는 방법. (0) | 2022.03.15 |
Flutter] DropdownButton으로 DropBox 구현하기 (0) | 2022.03.15 |