플러터의 여러 에러 중에서 이 부분을 이해 못하시는 분들이 종종 계셨습니다. 물론 저도 처음에는...
특히나 해당 에러는 될 때는 또 이상없이 되다가, 어떤 조건이 되면 뻗어버리기 때문에
정확하게 어디가, 어떻게 문제고 어떻게 고쳐야 하는 지 물어보는 경우가 많았습니다.
그래서 그런가 플러터 사이트에서도 빈번한 오류로 나누어 설명하고 있습니다.
https://flutter.dev/docs/testing/common-errors
Common Flutter errors
How to recognize and resolve common Flutter framework errors.
flutter.dev
써져 있는대로, 위젯 하이라키를 구현하시면 됩니다.
===Widget====================================== Expected parent widget(s)
Flexible | Row, Column, or Flex |
Expanded (a specialized Flexible) | Row, Column, or Flex |
Positioned | Stack |
TableCell | Table |
이 쪽에 있는 위젯들은 ---------------------------------------------------- 이 위젯을 부모로 둬야 한다는 뜻이죠.
'배워서 남주는 코딩' 카테고리의 다른 글
플러터 명령어 관련 (0) | 2021.08.18 |
---|---|
자바스크립트, 파이어베이스 전화 인증 (0) | 2021.07.17 |
Class AMSupportURLConnectionDelegate, Class AMSupportURLSessionOne of the two will be used. Which one is undefined. (0) | 2021.06.22 |
지도 api, map. (0) | 2020.11.21 |
RecyclerView. No adapter attached; skipping layout. (3) | 2020.06.24 |