๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
APP/FLUTTER

FLUTTER #1 I_am_rich

by mingzoo 2020. 1. 18.

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