λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
πŸ’š 개발/Flutter

[Dart] Dart μ‹œμž‘ν•˜κΈ°

by devshin.kr 2023. 2. 8.
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!

λ°˜μ‘ν˜•

λŒ“κΈ€