[Flutter] SizeBox 클래스
1. SizeBox 클래스 정해진 크기로 자식 위젯을 감싸는 용도. SizeBox는 크기를 지정하기 위한 여러 옵션을 제공 2. 생성자 SizedBox({ Key? key, double? width, double? height, Widget? child, }) 3. 속성 1) key : 위젯의 고유키를 지정 SizedBox( key: UniqueKey(), child: YourWidget(), ) 2) width : 가로 크기를 지정 SizedBox( width: 100.0, child: YourWidget(), ) 3) height : 세로 크기를 지정 SizedBox( height: 50.0, child: YourWidget(), ) 4) child : 크기를 지정할 자식 위젯을 포함 SizedBox..
2024. 1. 14.