본문으로 건너뛰기

FittedBox

개요

자식 위젯을 지정된 영역에 맞게 축소하거나 확대합니다. 예를 들어 다양한 크기의 이미지를 카드 영역에 맞춰 채웁니다.

속성 (Property)

속성설명기본값
fit자식 위젯을 상자 영역에 맞추기 위해 확대·축소하는 방식을 지정합니다.fill, contain, cover, fitWidth, fitHeight, none, scaleDowncontain
alignment맞춘 자식을 상자 안에서 정렬할 기준 위치를 지정합니다.정렬 값 (X, Y)중앙
clipBehavior상자 영역을 벗어난 부분을 잘라내는 방식을 지정합니다.none, hardEdge, antiAlias, antiAliasWithSaveLayernone