ํ๋ฌํฐ๋ ์์ ฏ์ผ๋ก ์์ํด์ ์์ ฏ์ผ๋ก ๋๋๋ค.
ํ๋ฌํฐ๋ก ์ฑ์ ๊ฐ๋ฐํ ๋ ํ๋ฉด์์ ๋ณด์ด๋ ๋ชจ๋ ๊ฒ(element๋ค์ ๋ฐฐ์น)๊ณผ
padding, margin๊ณผ ๊ฐ์ ๋ณด์ด์ง ์๋ ๊ฒ๋ค์ด ์์ ฏ์ด๋ค.
์ด๋ฌํ Widget๊ฐ์ ๊ด๊ณ๋ฅผ Widget Tree๋ผ๊ณ ํ๋ค.
Widget๋ค์ ๋ถ๋ชจ์ ์์์ ๊ด๊ณ๋ฅผ ๊ฐ๋๋ค.
MyApp์ ์์์ผ๋ก MaterialApp์ด ์กด์ฌํ๋ค.
Material์ ํ์ฌ ์๋๋ก์ด๋์ ์ ์ฉ๋ UI์ด๋ค.
https://flutter.dev/docs/development/ui/widgets/material
Material Components widgets
flutter.dev
์ด์ ๋๋น๋๋ ๊ฒ์ Cuppertino, ํ์ฌ IOS์ ์ ์ฉ๋ UI์ด๋ค.
https://flutter.dev/docs/development/ui/widgets/cupertino
Cupertino (iOS-style) widgets
flutter.dev
MaterialApp ์๋์๋ MyHomePage๋ผ๋ ์์ ฏ์ด ์กด์ฌํ๋๋ฐ MyApp์ ํตํด ์คํ๋๋ ์์ ฏ์ผ๋ก
์ด ์์ ฏ๋ถํฐ ์ค์ ์ดํ์ ๋์์ธ๊ณผ ๊ธฐ๋ฅ์ ๊ตฌํํ ์ ์๋ค.
'๐ป ๊ฐ๋ฐ > Flutter' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Flutter / Dart] What is Singleton? (0) | 2022.07.21 |
---|---|
[Flutter] SingleChildScrollView, ListView, ListView.bulider (1) | 2021.08.18 |
4. Column, Row, Expanded (0) | 2021.08.18 |
3. Container, Padding (0) | 2021.08.18 |
2. Stateless, Stateful (0) | 2021.07.13 |