Saltar al contenido principal
ProductosHerramientas de escritorioTASTECADRevisión de planosTASTEFILESGestión de archivosTASTEFTPTransferencia de archivosTASTESSHEspacio de trabajo remotoTASTEZIPCompresión y extracciónTASTEWINMGestión de archivosHerramientas para desarrolladoresTASTECODEEntorno de desarrollo integrado para RustTASTESTUDIOEntorno integrado de desarrollo y pruebasTASTEETLIntegración de datos (ETL)ServidoresTASTEREMOTEServidor de escritorio remotoTASTEGEOServidor geoespacialTASTEMAILEspacio de trabajo de correoInversiónTASTESTOCKAplicación de escritorio de trading automático de accionesEmpezarDescargasDocumentaciónComprarTodos los productos
Marketplace
Noticias
TecnologíaNoticiasNoticias de desarrollo de hoyDocumentaciónLenguajes de programaciónRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFrameworks web frontendNext.jsReactVue.js · NuxtSvelteKitAngularFrameworks de servidorSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFrameworks de apps y escritorioTauriFlutterReact NativeElectronAlgoritmosFundamentos de algoritmosAlgoritmos esencialesAlgoritmos avanzadosAlgoritmos prácticos
ComunidadProyectosRegistros de desarrolloPromptsProblemas con herramientas de IAEscaparateGuía de la comunidad
ColaboraTransferencia técnicaDesarrollo de sitio webDesarrollo de app de escritorioCanal de lanzamiento y pagosSocio de ventasContacto
ServiciosEscritorio remotoPaquetes de instalación a medida
TASTEDEV
Productos

Herramientas de escritorio

TASTECADAbre planos complejos con ligerezaTASTEFILESSolo los archivos que necesitas, lo más rápido posibleTASTEFTPEl camino más limpio para tus archivosTASTESSHEntre tu servidor y tú, una conexión más sólidaTASTEZIPComprime más rápido, descomprime más seguroTASTEWINMUn gestor de archivos de dos paneles pensado para el teclado

Herramientas para desarrolladores

TASTECODEEdita, compila, depura y prueba apps de Rust en una sola ventanaTASTESTUDIODe la edición a las pruebas remotas y las correcciones con IA aprobadasTASTEETLMueve datos viendo sus valores

Servidores

TASTEREMOTEUn escritorio remoto que funciona en tu propio servidorTASTEGEOUn servidor geoespacial compatible con GeoServer, reconstruido en RustTASTEMAILRecupera el control de tu correo

Inversión

TASTESTOCKTrading automático de acciones según las reglas que tú defines: cuándo y qué

Empezar

DescargasÚltimas versiones de cada productoDocsCómo usar cada productoComprarSuscripciones y licencias perpetuasTodos los productosTodos los productos de un vistazo
Todos los productos
MarketplaceNoticias
Tecnología

Noticias

Noticias de desarrollo de hoyAnuncios oficiales de lenguajes, frameworks, GitHub e IADocumentaciónGuías de lenguajes, frameworks y algoritmos

Lenguajes de programación

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Frameworks web frontendNext.jsReactVue.js · NuxtSvelteKitAngular
Frameworks de servidorSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Frameworks de apps y escritorioTauriFlutterReact NativeElectron

Algoritmos

Fundamentos de algoritmosAnálisis de complejidad · Ordenamiento · Búsqueda · Estructuras de datos básicas · Árboles y montículosAlgoritmos esencialesRecorrido de grafos · Camino mínimo y árbol generador mínimo · Programación dinámica · Algoritmos voraces · Divide y vencerás · Backtracking (vuelta atrás)Algoritmos avanzadosAlgoritmos de cadenas · Matemáticas y teoría de números · Manipulación de bits · Árboles de segmentos · Union-FindAlgoritmos prácticosEstrategia para entrevistas de código · Caché LRU · Limitación de tasa · Hashing consistente
Toda la documentación de desarrollo
Comunidad
ProyectosDescubre creadores y su trabajoRegistros de desarrolloDecisiones y aprendizajesPromptsInstrucciones reutilizablesProblemas con herramientas de IAProblemas y alternativas de Claude, Codex, GeminiEscaparateResultados terminadosGuía de la comunidadCómo construimos en abierto
Colabora
Transferencia técnicaApps nativas con Rust y eguiDesarrollo de sitio web10 idiomas, cuentas, documentación y descargasDesarrollo de app de escritorioRust y egui, sin WebViewCanal de lanzamiento y pagosFirma, MSI, deb, rpm, AppImage, hashesSocio de ventasRecomiéndanos y gana el 30 %ContactoDesarrollo, alianzas e inversión
Servicios
Escritorio remotoAccede a tu ordenador desde el navegadorPaquetes de instalación a medidaSolo lo necesario, ajustes precargados
Comprar
ES
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Iniciar sesión
Iniciar sesión
TASTEDEV

De pequeñas herramientas a un mejor desarrollo.

support@tastedev.netApoyar a TASTEDEV
ProductosLínea de productosComprarDocsDescargasMarketplaceSoporte
ComunidadProyectosRegistros de desarrolloPromptsProblemas con herramientas de IAEscaparate
PolíticasQuiénes somosPolítica de privacidadTérminos de servicioCondiciones de suscripciónReembolsosNormas de la comunidad
CuentaIniciar sesiónRegistrarse
Visitantes
Hoy
Ayer
Vistas totales
Empresa
GXSOFT
Representante
CHOI YOUNG GU
Número de registro mercantil
853-44-00368
Dirección
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Teléfono
+82-10-4404-1523
Correo electrónico
whitecalvin@tastedev.net
Responsable de privacidad
CHOI YOUNG GU

© 2026 TASTEDEVLa información de los productos se basa en fuentes de desarrollo verificadas.Publicado · en mejora

Documentación de Dart
Dart
Getting Started with DartSyntax BasicsTypes and DataLibraries and PackagesErrors and TestingKey Concepts
Debates

Guía de Dart · 1/6

Getting Started with Dart

Por ahora, este capítulo solo está disponible en 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
¿Tienes preguntas sobre este capítulo?
Capítulo siguienteSyntax 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 comentarios

Comentarios destacadosMás recientes primero

Iniciar sesión · Inicia sesión para dejar un comentario.