HIDI Flutter Challenge (12) Axis Properties

hello_hidiยท2021๋…„ 9์›” 4์ผ
0

HIDI's Flutter Challenge

๋ชฉ๋ก ๋ณด๊ธฐ
12/12
post-thumbnail

Axis Properties

> Axis Properties

  • axis๋Š” ์ค‘์‹ฌ์„ ์ด๋ผ๋Š” ๋œป
  • mainaxis : ์ฃผ์ถ•, corssaxis : ํšก์ถ•
  • MainAxisAlignment : ์ฃผ์ถ• ์ •๋ ฌ, CrossAxisAlignment : ํšก์ถ• ์ •๋ ฌ

> ์ •๋ ฌํ•˜๋Š” ์ข…๋ฅ˜

>> center : ๊ฐ€์šด๋ฐ ์ •๋ ฌ

MainAxisAlignment.center, CrossAxisAlignment : ์œ„์ ฏ ์ƒ๊ด€์—†์ด ๊ฐ€์šด๋ฐ ์ •๋ ฌ

image

>> start : ์™ผ์ชฝ(row-main)/์œ„์ชฝ(colummn-main) ์ •๋ ฌ

MainAxisAlignmnet.start : row์œ„์ ฏ์€ ์™ผ์ชฝ, column์œ„์ ฏ์€ ์œ„์ชฝ ์ •๋ ฌ

CrossAxisAlignmnet.start : row์œ„์ ฏ์€ ์œ„์ชฝ, column์œ„์ ฏ์€ ์™ผ์ชฝ ์ •๋ ฌ

image

>> end : ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ(row-main)/์•„๋ž˜์ชฝ(column-main) ์ •๋ ฌ

MainAxisAlignmnet.start : row์œ„์ ฏ์€ ์˜ค๋ฅธ์ชฝ, column์œ„์ ฏ์€ ์•„๋ž˜์ชฝ ์ •๋ ฌ

CrossAxisAlignmnet.start : row์œ„์ ฏ์€ ์•„๋ž˜์ชฝ, column์œ„์ ฏ์€ ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ

image

>> spaceEvently : child widget ์‚ฌ์ด์˜ ์—ฌ์œ  ๊ณต๊ฐ„์„ ๋ชจ๋‘ ๊ท ๋“ฑํ•˜๊ฒŒ ๋ฐฐ๋ถ„

image

>> spaceBetween : child widget์„ ์‹œ์ž‘๊ณผ ๋์— ๋ฐฐ์น˜ํ•˜๊ณ , ์‹œ์ž‘๊ณผ ๋ ์‚ฌ์ด์˜ ๋‚˜๋จธ์ง€ child widget ๋ฐฐ์น˜

image

>> spaceAround : ์ฒซ๋ฒˆ์งธ์™€ ๋งˆ์ง€๋ง‰ child ์•ž ๋’ค์— ์—ฌ์œ  ๊ณต๊ฐ„์„ ๋‚˜๋จธ์ง€ child์™€ ๊ณต๊ฐ„์˜ ์ ˆ๋ฐ˜๋งŒํผ ๋ฐฐ์น˜

image

>> ์ •๋ฆฌ

image

profile
์•ˆ๋‡ฝํฌ๋””

0๊ฐœ์˜ ๋Œ“๊ธ€