민프

[Flutter] MainAxisAlignment, CrossAxisAlignment 정렬하기 (기록) 본문

[Flutter]

[Flutter] MainAxisAlignment, CrossAxisAlignment 정렬하기 (기록)

민프야 2023. 8. 8. 11:19

MainAxisAlignment : 주축

CrossAxisAlignment : 횡축

 

Row(행) 일 경우

MainAxisAlignment : 주축 (가로)

CrossAxisAlignment : 횡축 (세로)


Column(열) 일 경우

MainAxisAlignment : 주축 (세로)

CrossAxisAlignment : 횡축 (가로)

 

 

 

속성 값 참고

https://docs.flutter.dev/codelabs/layout-basics

 

Basic Flutter layout concepts

A codelab that teaches basic Flutter layout concepts through DartPad examples and exercises.

docs.flutter.dev

 

Comments