kahnco

  • 홈
  • 태그
  • 방명록

checkbox 1

CheckBox Inner Color Not Changed

Flutter에서 CheckBox를 구현하다보면, 선택되지 않은 상태에서의 내부 색상을 변경하고 싶을 때가 있습니다. 이런 경우에 다른 Widget들 처럼, MaterialState 상태를 분기시켜서 selected 되지 않은 상태일 때에 원하는 값을 넣으면 될 것처럼 보입니다. 코드로 구현해보면, Checkbox( fillColor: MaterialStateProperty.resolveWith(setCheckBoxColorState), value: isChecked, onChanged: (value) {}, ); ... Color? setCheckBoxColorState(Set states) { if (states.contains(MaterialState.selected)) { return Colors..

Flutter 2022.12.28
이전
1
다음
더보기
반응형
프로필사진

kahnco

  • 분류 전체보기 (46)
    • Flutter (5)
    • Clean Architecture (3)
    • Android (0)
    • React (0)
    • AWS (4)
    • Algorithm (0)
    • Logstash (1)
    • NestJS (3)
    • MLOps (1)
    • AI (0)
    • Golang (5)
    • DevOps (0)
    • Spring (4)
    • Database (12)
    • Kotlin (5)
    • CS (3)

Tag

AWS, Type, MSA, database, Spring, grpc, IoC Container, docker, Flutter, devops, cicd, alb, 데이터베이스, 코틀린, spring data, golang, nestjs, PostgreSQL, Kotlin, Clean Architecture,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바