-
[Flutter] IntrinsicHeight 한줄 정리Flutter 2023. 10. 19. 11:50
Intrinsic = 본질적인,
IntrinsicHeight 위젯으로 감싼 위젯은의 자식은 부모 위젯이 제한한 고유한 높이에 자신의 높이를 맞춘다.
IntrinsicHeight( child:Row( children:[ Container( height: 200, ), Expanded( child: Column( children: [ Text('1'), Text('2'), Text('3'), ] ), ), ] ) )
이런 코드가 있으면, Expanded로 높이가 지정되어 있지 않은 Column의 높이는 200으로 맞춰진다.
'Flutter' 카테고리의 다른 글
[Dart] Dart에서의 static, const와의 차이점? (0) 2023.11.01 [Dart] "toString"과 "as String" 차이? (0) 2023.10.31 [Flutter] FocusNode 활용 (0) 2023.10.30 Flutter 생명 주기 (0) 2023.10.23 [Flutter] Text 위젯의 overflow 속성 - 글자 수가 길어 넘어갔을 때 (0) 2023.10.19