| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 이모지메모
- 장자명언
- jetpack compose
- Android
- androidx
- 좋은글필사하기
- 오늘의역사
- DART
- 공부집중
- gemini-cli
- Flutter
- javascript
- ASMR
- FSM
- 명심보감
- Firebase
- 생성AI
- ChatGPT
- Gemini
- 소울칼리버6
- 명언모음
- 명언
- Coroutine
- 코틀린
- kotlin
- 파이썬
- Freesound
- 명상명언
- 오픈소스
- Linux
- Today
- Total
Vintage appMaker의 Tech Blog
[중요에러] Incorrect use of ParentDataWidget Error in Flutter 본문
[중요에러] Incorrect use of ParentDataWidget Error in Flutter
VintageappMaker 2022. 10. 26. 16:54이 에러가 발생하면 개발환경에서는 큰문제 없이 실행가능할 때도 있다.
그러나 Release한 상태에서는 에러가 심각한 문제를 발생할 수 있다. 그러므로
"Incorrect use of ParentDataWidget Error in Flutter"
가 발생한다면 ASAP으로 해결하는 것이 좋다.
이 에러는 대부분 Parent Widget이 감당할 수 없는 Widget을 사용했을 경우 발생한다.
주로
- Expanded()
- Flexible()
- Positioned()
- 기타
에서 발생한다. 이 위젯들은 사용할 수 있는 Parent Widget이 한정되어 있다.
Expanded()와 Flexible()의 부모 => Row(), Column(), Flex()
Positioned()의 부모 => Stack()
해결책을 찾기 위해 구글링을 하면 다음과 같은 결과들이 나온다.
Flutter Incorrect Use Parent DataWidget - Google 검색
2021. 3. 29. · ExpandedはRow, Column, flexの配下のみで使うようにした。 https://stackoverflow.com/questions/54905388/incorrect-use-of-parent-data-widget- ...
www.google.com
[Flutter solved] ListView가 스크롤 되지 않을 때 - SingleChildScrollView
Flutter에서는 특정환경에서 ListView가 스크롤되지 않는 경우가 있다(예로 Autocomplete에서 ListView를 구현할 때). 그럴경우 Widget의 구조를 아래와 같이 SingleChildScrollView, Expanded, ListView로 만든..
vintageappmaker.tistory.com
'Source code or Tip > Flutter & Dart' 카테고리의 다른 글
| [Flutter] Web app 배포시, 화면크기 고정 (0) | 2022.11.08 |
|---|---|
| [Flutter] build Error 화면 커스텀하기 (0) | 2022.11.05 |
| [flutter] Column의 children에 배열추가하기 (0) | 2022.10.24 |
| [flutter] RichText 활용 (0) | 2022.10.22 |
| [Flutter] Flutter에서 GoogleFonts 사용하기 (0) | 2022.10.19 |
