Padding

이원석·2023년 11월 12일
0

Flutter

목록 보기
6/46

Padding

EdgeInsets.all()

EdgeInsets.all()은 left, right, top, bottom의 padding을 일괄 적용

EdgeInsets.all(5)

EdgeInset.only()

EdgenInsets.only()은 left, right, top, bottom의 padding값을 선택하여 적용

EdgeInsets.only(left: 10, bottom: 5)

EdgeInsets.symmetric()

EdgeInsets.symmetric()은 수평, 수직의 padding 값을 적용

EdgeInsets.symmetric(vertical: 5, horizontal: 10)
//left, right의 padding 값은 10 
//top, botton의 padding 값은 5가 적용이 됨

참조
Origogi

0개의 댓글