Pular para o conteúdo principal
ProdutosFerramentas de desktopTASTECADVisualização de desenhosTASTEFILESGerenciamento de arquivosTASTEFTPTransferência de arquivosTASTESSHEspaço de trabalho remotoTASTEZIPCompactação e extraçãoTASTEWINMGerenciamento de arquivosFerramentas para desenvolvedoresTASTECODEAmbiente de desenvolvimento integrado para RustTASTESTUDIOAmbiente integrado de desenvolvimento e testesTASTEETLIntegração de dados (ETL)ServidoresTASTEREMOTEServidor de área de trabalho remotaTASTEGEOServidor geoespacialTASTEMAILEspaço de trabalho de e-mailInvestimentosTASTESTOCKAplicativo desktop de negociação automática de açõesComeçarDownloadsDocumentaçãoComprarTodos os produtos
Marketplace
Notícias
TecnologiaNotíciasNotícias de desenvolvimento de hojeDocumentaçãoLinguagens de programaçãoRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFrameworks de front-end webNext.jsReactVue.js · NuxtSvelteKitAngularFrameworks de servidorSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFrameworks de apps e desktopTauriFlutterReact NativeElectronAlgoritmosFundamentos de algoritmosAlgoritmos essenciaisAlgoritmos avançadosAlgoritmos práticos
ComunidadeProjetosRegistros de desenvolvimentoPromptsProblemas de ferramentas de IAVitrineGuia da comunidade
ColaboreTransferência técnicaConstrução de siteConstrução de app de desktopPipeline de lançamento e pagamentoParceiro de vendasContato
ServiçosÁrea de trabalho remotaPacotes de instalação sob medida
TASTEDEV
Produtos

Ferramentas de desktop

TASTECADDesenhos complexos, abertos com levezaTASTEFILESSó os arquivos de que você precisa, o mais rápido possívelTASTEFTPO caminho mais organizado para seus arquivosTASTESSHEntre você e o servidor, uma conexão mais sólidaTASTEZIPCompacte mais rápido, extraia com mais segurançaTASTEWINMUm gerenciador de arquivos de dois painéis feito para o teclado

Ferramentas para desenvolvedores

TASTECODEEdite, compile, depure e teste apps Rust em uma única janelaTASTESTUDIODa edição aos testes remotos e às correções com IA aprovadasTASTEETLMova dados de olho nos valores

Servidores

TASTEREMOTEUma área de trabalho remota rodando no seu próprio servidorTASTEGEOUm servidor geoespacial compatível com o GeoServer, reconstruído em RustTASTEMAILRetome o controle do seu e-mail

Investimentos

TASTESTOCKNegociação automática de ações pelas regras que você define: quando e o quê

Começar

DownloadsVersões mais recentes de cada produtoDocsComo usar cada produtoComprarAssinaturas e licenças perpétuasTodos os produtosTodos os produtos de relance
Todos os produtos
MarketplaceNotícias
Tecnologia

Notícias

Notícias de desenvolvimento de hojeAnúncios oficiais de linguagens, frameworks, GitHub e IADocumentaçãoGuias de linguagens, frameworks e algoritmos

Linguagens de programação

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Frameworks de front-end webNext.jsReactVue.js · NuxtSvelteKitAngular
Frameworks de servidorSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Frameworks de apps e desktopTauriFlutterReact NativeElectron

Algoritmos

Fundamentos de algoritmosAnálise de complexidade · Ordenação · Busca · Estruturas de dados básicas · Árvores e heapsAlgoritmos essenciaisBusca em grafos · Caminho mínimo e árvore geradora mínima · Programação dinâmica · Algoritmos gulosos · Divisão e conquista · BacktrackingAlgoritmos avançadosAlgoritmos de strings · Matemática e teoria dos números · Manipulação de bits · Árvores de segmentos · Union-FindAlgoritmos práticosEstratégia para entrevistas de código · Cache LRU · Limitação de taxa · Hashing consistente
Toda a documentação de desenvolvimento
Comunidade
ProjetosDescubra criadores e trabalhosRegistros de desenvolvimentoDecisões e aprendizadosPromptsInstruções reutilizáveisProblemas de ferramentas de IAProblemas e contornos de Claude, Codex, GeminiVitrineResultados concluídosGuia da comunidadeComo construímos em aberto
Colabore
Transferência técnicaApps nativos em Rust e eguiConstrução de site10 idiomas, contas, documentação e downloadsConstrução de app de desktopRust e egui, sem WebViewPipeline de lançamento e pagamentoAssinatura, MSI, deb, rpm, AppImage, hashesParceiro de vendasRecomende e ganhe 30%ContatoDesenvolvimento, parcerias e investimento
Serviços
Área de trabalho remotaAcesse seu computador pelo navegadorPacotes de instalação sob medidaSó o necessário, configurações pré-carregadas
Comprar
PT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Entrar
Entrar
TASTEDEV

De pequenas ferramentas a um desenvolvimento melhor.

support@tastedev.netApoiar TASTEDEV
ProdutosLinha de produtosComprarDocsDownloadsMarketplaceSuporte
ComunidadeProjetosRegistros de desenvolvimentoPromptsProblemas de ferramentas de IAVitrine
PolíticasSobre nósPolítica de privacidadeTermos de usoTermos de assinaturaReembolsoDiretrizes da comunidade
ContaEntrarCriar conta
Visitantes
Hoje
Ontem
Visualizações totais
Empresa
GXSOFT
Representante
CHOI YOUNG GU
Número de registro comercial
853-44-00368
Endereço
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefone
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsável pela privacidade
CHOI YOUNG GU

© 2026 TASTEDEVAs informações dos produtos se baseiam em fontes de desenvolvimento verificadas.Lançado · em melhoria

Documentação de Dart
Dart
Getting Started with DartSyntax BasicsTypes and DataLibraries and PackagesErrors and TestingKey Concepts
Discussões

Guia de Dart · 1/6

Getting Started with Dart

Por enquanto, este capítulo está disponível apenas em inglês.

Dart is a client-optimized, general-purpose language created by Google. You can use it to build command-line tools, servers and web apps, and it is best known as the language behind Flutter. In this chapter you will install the Dart SDK, create and run a first project, try code in the browser with DartPad, and set up your editor.

Installing the Dart SDK

The Dart SDK bundles the compiler, runtime, package manager (pub), analyzer, formatter and test runner behind a single dart command. There are two common ways to get it.

  • Dart only: follow the official instructions at dart.dev/get-dart to install the standalone SDK.
  • With Flutter: the Flutter SDK ships with a Dart SDK inside it, so installing Flutter is enough.

A package manager is usually the simplest route. On macOS use Homebrew, on Windows use Chocolatey, and on Debian or Ubuntu use the apt repository provided by Google. You can also download an archive, extract it and add its bin directory to your PATH.

# macOS (Homebrew)
brew tap dart-lang/dart
brew install dart

# Windows (Chocolatey, from an elevated terminal)
choco install dart-sdk

# Verify the installation
dart --version

If dart --version prints an SDK version, you are ready. If you installed Flutter, the dart command works as long as flutter/bin is on your PATH. When both are installed, run which dart (or where dart on Windows) to see which one comes first and avoid version confusion.

Creating a first project

dart create generates a new project from a template. The default template is a command-line app (console); with -t you can pick others such as package (a reusable library), server-shelf (a small HTTP server), cli (a command-line tool with argument parsing) or web.

dart create hello_dart
cd hello_dart
dart run

The generated project looks like this.

PathPurpose
bin/hello_dart.dartEntry point with the main function
lib/hello_dart.dartThe project's library code
test/hello_dart_test.dartTests written with package:test
pubspec.yamlPackage name, SDK constraint, dependencies
Dúvidas sobre este capítulo?
Próximo capítuloSyntax Basics
analysis_options.yamlStatic analysis (lint) settings

Open bin/hello_dart.dart and write your first program. A Dart program starts at the top-level main function, which can receive command-line arguments as a List<String>.

void main(List<String> arguments) {
  final name = arguments.isEmpty ? 'Dart' : arguments.first;
  print('Hello, $name!');
}

dart run finds the entry point under bin and runs it, and you can pass arguments after it. To run a single file, give its path directly.

dart run                      # runs bin/<package_name>.dart
dart run bin/hello_dart.dart developer
dart compile exe bin/hello_dart.dart -o hello
./hello

dart run uses the JIT (just-in-time) compiler for a fast development loop, while dart compile exe produces a self-contained native executable with the AOT (ahead-of-time) compiler. The executable runs on machines of the same operating system and architecture without a Dart SDK. You can also target JavaScript with dart compile js and WebAssembly with dart compile wasm.

Everyday dart commands

CommandWhat it does
dart analyzeReports type errors and lint warnings
dart format .Formats code in the official style
dart fix --applyApplies automated fixes suggested by the analyzer
dart testRuns the tests in the test directory
dart pub getFetches the dependencies in pubspec.yaml
dart docGenerates API documentation

Make dart format and dart analyze a habit before every commit. The Dart community accepts the official formatter's output as-is, so there is very little debate about indentation or line breaks.

Trying code in DartPad

To taste Dart without installing anything, open DartPad. You write code in the browser and run it immediately, with access to the core libraries, a set of popular packages, and even Flutter UI rendering. It is handy for checking short examples, experimenting with syntax, or sharing a reproduction with someone else. Code that relies on dart:io, such as file system or process access, cannot run in the browser.

Editor setup

The Dart team maintains official plugins for VS Code and the IntelliJ family (IntelliJ IDEA and Android Studio).

  • VS Code: install the Dart extension from the marketplace. If you use Flutter, installing the Flutter extension pulls in the Dart extension as well.
  • IntelliJ and Android Studio: install the Dart plugin (or the Flutter plugin) from the plugin settings and point it at your SDK.

Both editors use the Dart analysis server, so they offer the same code completion, error highlighting, quick fixes, renaming and format-on-save. In VS Code, enable "editor.formatOnSave": true to get dart format output every time you save. Static analysis rules are tuned in the project's analysis_options.yaml.

include: package:lints/recommended.yaml

linter:
  rules:
    prefer_single_quotes: true
    avoid_print: false

Projects created by dart create already include the recommended rules from package:lints. Enable or disable rules to match your team's conventions.

Summary

You can get the Dart SDK on its own or as part of Flutter, and a single dart command handles project creation (dart create), running (dart run), compiling (dart compile), analysis, formatting and tests. Before installing, DartPad lets you experiment right away; for real work, pair the SDK with the Dart plugin for VS Code or IntelliJ. The next chapter covers the basic syntax: variables, functions and control flow.

0 comentários

Principais comentáriosMais recentes primeiro

Fazer login · Faça login para deixar um comentário.