๐ ํ๋ฉด ๋ ์ด์์ ๊ตฌ์ฑ ์์ ฏ
1. MaterialApp
์๋๋ก์ด๋ native setting ๋น๋ ์์ ํ์ํ ํ์ผ๋ค๊ณผ ์ฝ๋๋ค์ด ์์ฑ๋ฉ๋๋ค.
2. Text
ํ ์คํธ๋ฅผ ์ถ๋ ฅํด์ฃผ๋ ์์ ฏ
3. Scaffold
๋จธํฐ๋ฆฌ์ผ ์คํ์ผ ๋์์ธ์ ๋ ์ด์์ ๊ตฌ์กฐ๋ฌผ
4. Appbar
์๋จ ๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ์ถ๋ ฅํด์ฃผ๋ ์์ ฏ
๐ข ๋ชจ๋ ํ๋ฉด์ ์ด๋ฃจ๋ ์์๋ฅผ ์์ ฏ(Widget)์ด๋ผ๊ณ ํํํฉ๋๋ค!
Text, Scaffold, AppBar ...๋ฑ ๋ชจ๋ ํ๋ฉด์ ๊ตฌ์ฑ์์๋ฅผ ์์ ฏ ์ด๋ผ๊ณ ๋ถ๋ฆ ๋๋ค.
๐ ์์
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: Center(
child: Text('Flutter'),
),
),
);
}
}
'๐ Programming > Flutter' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Flutter] ๋จ์ผ ๋ฐ์ค(Container) ์์ ฏ ์์ฑ (0) | 2022.06.07 |
---|---|
[Flutter] ํ๋ฌํฐ ํ๋ก์ ํธ ๊ตฌ์กฐ ์ดํดํ๊ธฐ (0) | 2022.06.07 |
[Flutter] Windows ์ ๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถ (0) | 2022.05.02 |