Angelar ์จ์๋์ ์ ๋ฐ๋ฏธ ํ๋ฌํฐ ๊ฐ์๋ฅผ ๋ฃ๊ณ ๊ทธ ๋ด์ฉ์ ์ ๋ฆฌํ๋ ค ํ๋ค.
์๋ ๋ ธ์ ์ ์ ๋ฆฌํ์์ผ๋, ๋ค์ ๋ธ๋ก๊ทธ์ ์ ์ด๋ณด๋ ์ค์ ๋๋ค,,
Material App()
material design application์ ์ํ ๋นํธ์ธ ์์ ฏ
Scaffold
๊ฐ์ฅ ์ต์๋จ, ์ค๊ฐ ์์ญ, ์ตํ๋จ, ๊ทธ๋ฆฌ๊ณ ๋ ์๋ ๋ฒํผ์ ์ง์ํด์ฃผ๋ ํด๋์ค
- AppBar
- Body - ๊ฐ์ด๋ฐ ์์ญ
- BottomNavigationBar
- FloatingActionButton
- FloatingActionButtonLocation
- BackgroundColor : Colors.์[]
Hide Debug Banner(์๋ฎฌ๋ ์ดํฐ์์ ๋๋ฒ๊ทธ ๋ฐฐ๋ ์์ ๋ ๋ฐฉ๋ฒ)
(android studio)
Flutter Inspector -> Hide Debug Banner
๐i am rich ์ดํ์์ ์ฌ์ฉ๋๋ ์์ ฏ์ ๊ตฌ์กฐ๋
์ด๋ฏธ์ง ์ถ๊ฐ๋ฐฉ๋ฒ
์์ ์ด ํ๋ก๊ทธ๋จ์์ ์ฌ์ฉํ ์ด๋ฏธ์ง๋ฅผ new-directory -> images ํด๋ ์์ฑ ํ, ์ด๋ฏธ์ง๋ฅผ ๋ชจ๋ ๋ฃ์ ํ,
pubspec.yaml์์
assets:
-images/์ด๋ฏธ์ง ์ด๋ฆ
# To add assets to your application, add an assets section,
like this:
# assets:#
- images/a_dot_burr.jpeg#
- images/a_dot_ham.jpeg
์ต์ข ์ฝ๋
import 'package:flutter/material.dart';
//The main function is the starting point for all our Flutter apps.
void main() {
runApp(
MaterialApp(
home: Scaffold(
backgroundColor: Colors.blueGrey[700],
appBar: AppBar(
title: Text('I Am Rich'),
backgroundColor: Colors.blueGrey[900],
),
body: Center(
child: Image(
image: AssetImage('images/urbanbrush-20190125013748099992.png'),
),
),
),
),
);
}
728x90
'APP > FLUTTER' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Flutter #3] Xylophone & Quizzler (0) | 2021.01.05 |
---|---|
FLUTTER #2 Dicee & Dart (0) | 2020.09.11 |
FLUTTER #4 BMI Calculator (0) | 2020.01.19 |