Declarative1 Flutter 는 왜 Declarative UI 를? Flutter 공식 페이지에도 소개되는 내용이지만 한번 더 소화해서 정리해 보자. Introduction to declarative UI Explains the difference between a declarative and imperative programming style. flutter.dev Imperative vs. Declarative 일단 Imperative 와 Declarative 의 차이부터 알아보자. Imperative는 명령형 Declarative는 선언형 을 의미한다. 뭔 말이지? 아래 Flutter 공식 사이트에 나오는 예제로 이야기해 보자. 배경색을 노란색에서 빨간색으로 변경하고 ViewB 타입의 b에 있는 ViewC 타입의 c1과 c2를 없애고 대신 ViewC 타입의 c3 를.. 2020. 12. 31. 이전 1 다음