Checkbox class - material library - Dart API
A Material Design checkbox. The checkbox itself does not maintain any state. Instead, when the state of the checkbox changes, the widget calls the onChanged callback. Most widgets that use a checkbox will listen for the onChanged callback and rebuild the c
api.flutter.dev
Flutter Checkbox에는 padding 옵션이 없어서 padding 을 없앨 수 없다
SizedBox(
height: 24.0,
width: 24.0,
child: Checkbox(),
)
해당 코드와 같이 SizedBox로 감싸주자
'Flutter' 카테고리의 다른 글
SharedPreferences가 갱신되지 않을 문제 (0) | 2024.05.09 |
---|---|
FutureBuilder에서 SetState 에 문제가 있을 때 (0) | 2024.04.05 |
Flutter IOS 재부팅시 FCM이 수신되지 않을 때 (0) | 2024.03.25 |
Firebase Cloud Messaging(FCM) 구현 - 1 (1) | 2024.03.24 |
Firebase Cloud Messaging(FCM) (0) | 2024.03.21 |