๐Ÿ’š ๊ฐœ๋ฐœ/Flutter

[Dart] Dart ์‹œ์ž‘ํ•˜๊ธฐ

devshin.kr 2023. 2. 8. 14:56
728x90

Dart ๋ฅผ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์—์„œ ๋„์ ์—ฌ ๋ณด๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋‘ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ๋Š”๋ฐ,

1) dartpad.dev

 

DartPad

 

dartpad.dev

 

 

 

2) VSCode ์— Dart SDK ์„ค์น˜ํ•ด์„œ ์‚ฌ์šฉํ•˜๊ธฐ

2.1. Chocolatey ์„ค์น˜

https://chocolatey.org/install

 

Installing Chocolatey

Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.

chocolatey.org

 

2.1.1. PowerShell ์„ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹œ์ž‘ํ•œ๋‹ค.

 

 

2.1.2. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ๋ณต์‚ฌ ํ›„ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•œ๋‹ค.

> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

 

 

2.2. https://dart.dev/get-dart#install

 

Get the Dart SDK

Get the libraries and command-line tools that you need to develop Dart web, command-line, and server apps.

dart.dev

 

2.2.1. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด dart-sdk ๋ฅผ ์„ค์น˜ํ•œ๋‹ค.

> choco install dart-sdk

(Dart SDK ๋ฅผ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š”, choco upgrade dart-sdk ์‹คํ–‰)

 

2.3. VSCode ์—์„œ Run!