Flutter Widget / ListView(리스트뷰) 사용방법
Flutter ListView가 어떤 위젯이고 사용 방법은 무엇인지 알아보도록 하겠습니다. 기능 ListView는 가장 일반적으로 사용되는 스크롤 위젯으로, 스크롤할 수 있는 영역을 만들고, 지정된 방향(scrollDirection)에 따라 자식들을 차례로 표시합니다. 스크롤 방향, 자식 위젯의 정렬 순서, Named Constructor 등을 통해 다양한 형태의 리스트 생성 옵션을 제공해 줍니다. 사용법 ListView( children: [ Container( height: 50, color: Colors.amber[600], child: const Center(child: Text('Entry A')), ), Container( height: 50, color: Colors.amber[500], c..
2023. 1. 14.