flutter icon1 [Flutter] Error: The argument type 'IconData' can't be assigned to the parameter type 'Widget' 해결 플러터 위젯에 icon을 추가하려 했을 때 발생한 에러. 이렇게 아이콘을 작성하였다. icon: Icons.person_outline, 하지만 플러터에서 모든 것은 위젯이기 때문에, icon도 Icon 위젯을 사용해서 작성해야 한다. icon: const Icon(Icons.person_outline), 2022. 6. 16. 이전 1 다음