CoxeMonkey
close
프로필 사진

CoxeMonkey

github: @GangOn0215

  • 분류 전체보기 (125)
    • 지나온 흔적 (10)
    • 알면 좋은 지식들 (5)
    • WEB (1)
    • CS (1)
      • Database (1)
    • Document (4)
      • Excel (4)
    • Mobile (18)
      • Flutter (18)
      • Dart (0)
    • FrontEnd (21)
      • HTML (0)
      • CSS (0)
      • JavaScript (8)
      • React (13)
    • BackEnd (14)
      • Node.js (7)
      • PHP (1)
      • Database (1)
      • Server (1)
      • Spring (3)
    • Project (8)
    • TIL (Dev) (32)
      • 2025년 (3)
      • 2022년 (27)
    • Diary (6)
    • Bug Report (3)
      • PHP (0)
  • 홈
  • 태그
  • 방명록
[ Flutter ] Container 내 2개의 color 오류

[ Flutter ] Container 내 2개의 color 오류

Container 내 color 를 white 로 주고, decoration을 만들어서 Border 를 주면서 color를 주었더니 아주 징그러운 에러가 나왔습니다. 알아보니 이 에러는 Container 안에 decoration에 color 1개, decoration 외 color 1개 이렇게 두면 저렇게 오류를 뱉어낸다고 합니다. 원인은 내부적으로 container에 있는 color가 BoxDecoration(color: ...) 로 바꿔서 처리하기 때문에 충돌이 나버려서 Assertion Failed 가 나온것이기에 조심해야 할 것 같습니다. 해결 방안은 위와 같이 두군대로 나눠서 color를 넣었기 때문에 돌아가는 방식대로 decoration 안에 color를 다 정의 해두면 됩니다.

  • format_list_bulleted 지나온 흔적
  • · 2025. 9. 25.
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (125)
    • 지나온 흔적 (10)
    • 알면 좋은 지식들 (5)
    • WEB (1)
    • CS (1)
      • Database (1)
    • Document (4)
      • Excel (4)
    • Mobile (18)
      • Flutter (18)
      • Dart (0)
    • FrontEnd (21)
      • HTML (0)
      • CSS (0)
      • JavaScript (8)
      • React (13)
    • BackEnd (14)
      • Node.js (7)
      • PHP (1)
      • Database (1)
      • Server (1)
      • Spring (3)
    • Project (8)
    • TIL (Dev) (32)
      • 2025년 (3)
      • 2022년 (27)
    • Diary (6)
    • Bug Report (3)
      • PHP (0)
인기 글
전체 방문자
오늘
어제
Copyright © CoxeMonkey 모든 권리 보유.
SKIN: Copyright © 쭈미로운 생활 All rights reserved. Designed by JJuum.
and Current skin "dev-roo" is modified by Jin.

티스토리툴바