[Flutter] Sort child properties last in widget instance creations. 경고해결방법!


[Flutter] Sort child properties last in widget instance creations. 경고해결방법!

여러 가지 테스트를 하던 중에 생소하고 낯선 경고를 발견했다. 이름인즉슨, Sort child properties last in widget instance creations. 파파고를 돌려보면 위젯 인스턴스 작성의 마지막 하위 속성을 정렬합니다. 라는 내용이다. 이게 무슨 말??? 인가하니 [] 인스턴스의 마지막에 위치한 child를 정렬한다는 뜻이다. 왜 이런 어려운 말을 할까? //Bad example children: [ TextButton( onPressed: () {}, child: const Text('Go to ScreenA'), style: TextButton.styleFrom( backgroundColor: Colors.red, primary: Colors.black, ), ) //Go..


원문링크 : [Flutter] Sort child properties last in widget instance creations. 경고해결방법!