[Flutter] BuildContext란?


[Flutter] BuildContext란?

#flutter #flutter기초공부 #코딩셰프강의정리 #BuildContext #context 이번 포스팅에서는 BuildContext라는 것을 공부해 보겠습니다! 이 BuildContext는 그 동안 실습을 진행하면서 build 함수의 인자의 type으로 많이 봐왔는데, 이번 기회에 개념을 정리해보겠습니다. BuildContext란?? 우선 flutter 공식 문서에 따른 build context의 정의는 다음 두 가지입니다. 1. "A handle to the location of a widget in the widget tree." = "widget tree에서 현재 widget에 대한 위치를 알 수 있는 정보" 2. "Each widget has its own BuildContext, which becomes the parent of the widget returned by the Stateles..........



원문링크 : [Flutter] BuildContext란?