반응형
상황
Expanded를 위젯들에 감싸면서 레이아웃을 잡던 중 에러가 발생했습니다.
문제 파악
Expanded로는 간격을 줄 수 있는 위젯이 정해져있었습니다.
해결 방법
incorrect use of parent data widget. expanded widgets must be placed inside flex widgets
I am getting the following error: i.e.., Another exception was thrown: Incorrect use of ParentDataWidget. showing error on the mobile screen. @override Widget build(BuildContext context) {
stackoverflow.com
Column, Row나 flex 위젯 내에서만 이용이 가능합니다.
반응형