๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
ํ”Œ๋Ÿฌํ„ฐ (Flutter)

๋‹ค์ด๋‚˜๋ฏน ํƒ€์ž…(dynamic type system) ์ •๋ฆฌ

by ์Šค์นด ๐Ÿ€ 2020. 4. 22.

ํ”Œ๋Ÿฌํ„ฐ๋Š” ๊ตฌ๊ธ€์—์„œ ๊ฐœ๋ฐœํ•œ ํฌ๋กœ์Šค ํ”Œ๋žซํผ ๋ชจ๋ฐ”์ผ ์•ฑ ๊ฐœ๋ฐœ ํ”„๋ ˆ์ž„์›Œํฌ์ด๋‹ค. ์–ธ์–ด๋Š” ๊ตฌ๊ธ€์ด ๊ฐœ๋ฐœํ•œ Dart๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ํ˜„์žฌ ์•ˆ๋“œ๋กœ์ด๋“œ์™€ iOS๋ฅผ ์ง€์›ํ•˜๋ฉฐ ๊ตฌ๊ธ€์˜ ์ฐจ๊ธฐ OS ํ“จ์‹œ์•„์˜ ๋ฉ”์ธ ๊ฐœ๋ฐœํ™˜๊ฒฝ์ด ๋œ๋‹ค๊ณ  ํ•œ๋‹ค. - ๋‚˜๋ฌด์œ„ํ‚ค์—์„œ ์ปท -

 

๐Ÿ’ก ๋ˆ„๋ฅด๋ฉด Embed Widget Menu ๋‚˜ํƒ€๋‚จ

ALT + ENTER = Intention actions menu (like Padding, Center, widget, Column etc..)

Expanded ์œ„์ ฏ์€ RowColumn, Flex ์˜ ๊ณต๊ฐ„์„ ์ฑ„์šฐ๋Š” ์—ญํ™œ

 

์œ„์ ฏ ์นดํƒˆ๋กœ๊ทธ์—์„œ ๋จธํ…Œ๋ฆฌ์–ผ ์ปดํฌ๋„ŒํŠธ ์œ„์ ฏ์— Buttons 

 

 

OnPressed : ( ){ } โฌ…๏ธ anonymous function = ์ด๋ฆ„ ์—†๋Š” ๋ช…๋ น์–ด

$ = String Interpolation ๋ฌธ์žฅ ์จ๋„ฃ๋Š” ์–ด๊ตฌ

 

 

๋‹ค์ด๋‚˜๋ฏน ํƒ€์ž… ์ •๋ฆฌ

DART = statically Typed programming Language ์ •์  ํƒ€์ž… ์ปดํ“จํ„ฐ ์–ธ์–ด / ๋ณ€์ˆ˜ํƒ€์ž…์ด ํ‹€๋ฆฌ๋ฉด ์—๋Ÿฌ

๋ณ€์ˆ˜ ํƒ€์ž… ์ง€์ • ์•ˆํ•˜๋ฉด  dynamic type ์œผ๋กœ ์‚ฌ์šฉ ๋จ

var ํƒ€์ž…์— ๋ฐ์ดํ„ฐ๊ฐ€ ์—†์œผ๋ฉด dynamic type ์œผ๋กœ ์‚ฌ์šฉ ๋จ

dynamic type์œผ๋กœ ์‚ฌ์šฉํ•˜๋ฉด ํƒ€์ž…๋ณดํ˜ธ๊ฐ€ ๋˜์ง€ ์•Š๊ธฐ๋•Œ๋ฌธ์— dynamic๊ณผ Var๋Š” ์“ฐ์ง€ ์•Š๋Š”๊ฑธ ์ถ”์ฒœํ•˜๋„ค์š”

JavaScript ํ•˜์‹  ๋ถ„์€ dynamic์“ฐ๋ฉด JavaScript์™€ ๊ฐ™๋‹ค๋„ค์š”

 

๋ณ€์ˆ˜(variable ํŒŒ์ด์ฌ constant) ๋ณ€๊ฒฝ โŒ / Var โžก๏ธ  Int๋กœ ๋ณ€๊ฒฝ โŒ

 

JavaScript = dynamically typed programming Language

 

 

 

https://www.appbrewery.co/p/intro-to-flutter

 

Introduction to Flutter Development with Dart

Introduction to Flutter Development with Dart

www.appbrewery.co

ํ”Œ๋Ÿฌํ„ฐ ๋ฌด๋ฃŒ ๊ฐ•์˜ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค

์•ˆ์ ค๋ผ ์„ ์ƒ๋‹˜์˜ ๊ฐœ๋… ์ •๋ฆฌ๋ถ€ํ„ฐ ์‹ค์Šต๊ณผ์ œ, ์ฑŒ๋ฆฐ์ง€ ํ€„๋ฆฌํ‹ฐ ๋„ˆ๋ฌด ์ข‹์Šต๋‹ˆ๋‹ค ๐Ÿ‘

๊ฑฐ๊ธฐ๋‹ค๊ฐ€ ๋™๊ธฐ๋ถ€์—ฌ์™€ ์ฑ„์ฐ์งˆ๊นŒ์ง€ 

์˜์–ด๋ผ ์–ด๋ ค์›€์ด ์žˆ์ง€๋งŒ ์‰ฌ์šด ํ‘œํ˜„๊ณผ ์ •ํ™•ํ•œ ๋ฐœ์Œ, ์ž์ฃผ๋‚˜์˜ค๋Š” ๋‹จ์–ด๋‚˜ ๋ฌธ๋ฒ•์ด ์ •ํ•ด์ ธ ์žˆ์–ด์„œ ์ž์—ฐ์Šค๋ ˆ ๋“ค๋ฆฌ๋„ค์š”๐Ÿ˜Ž 

ํ•˜์ง€๋งŒ ๋„ค์ด๋ฒ„ ์‚ฌ์ „ ์ž‘์€์ฐฝ์€ ํ•„์ˆ˜ ๐Ÿคฏ