Aller au contenu principal
ProduitsOutils de bureauTASTECADConsultation de plansTASTEFILESGestion de fichiersTASTEFTPTransfert de fichiersTASTESSHEspace de travail à distanceTASTEZIPCompression et extractionTASTEWINMGestion de fichiersOutils pour développeursTASTECODEEnvironnement de développement intégré pour RustTASTESTUDIOEnvironnement intégré de développement et de testTASTEETLIntégration de données (ETL)ServeursTASTEREMOTEServeur de bureau à distanceTASTEGEOServeur géospatialTASTEMAILEspace de travail e-mailInvestissementTASTESTOCKApplication de bureau de trading automatique d'actionsCommencerTéléchargementsDocumentationAcheterTous les produits
Marketplace
Actualités
TechActualitésL’actu dev du jourDocs développeursLangages de programmationRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFrameworks front-end webNext.jsReactVue.js · NuxtSvelteKitAngularFrameworks serveurSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFrameworks d'applications et de bureauTauriFlutterReact NativeElectronAlgorithmesBases des algorithmesAlgorithmes essentielsAlgorithmes avancésAlgorithmes pratiques
CommunautéProjetsJournaux de développementPromptsProblèmes d’outils d’IAVitrineGuide de la communauté
CollaborerTransfert techniqueRéalisation de site webRéalisation d'application de bureauChaîne de publication et de paiementPartenaire commercialContact
ServicesBureau à distancePaquets d'installation sur mesure
TASTEDEV
Produits

Outils de bureau

TASTECADDes plans complexes, ouverts en toute légèretéTASTEFILESSeulement les fichiers utiles, au plus viteTASTEFTPLe chemin le plus net pour vos fichiersTASTESSHEntre vos serveurs et vous, un lien plus solideTASTEZIPCompresser plus vite, extraire en toute sécuritéTASTEWINMUn gestionnaire de fichiers à deux volets, pensé pour le clavier

Outils pour développeurs

TASTECODEModifier, compiler, déboguer et tester vos apps Rust dans une seule fenêtreTASTESTUDIODe l’édition aux tests à distance et aux corrections IA approuvéesTASTEETLDéplacer les données, les valeurs sous les yeux

Serveurs

TASTEREMOTEUn bureau à distance hébergé sur votre propre serveurTASTEGEOUn serveur géospatial compatible GeoServer, reconstruit en RustTASTEMAILReprenez la maîtrise de vos e-mails

Investissement

TASTESTOCKDu trading automatique d'actions selon vos règles : quand, et quoi

Commencer

TéléchargementsDernières versions de chaque produitDocsUtiliser chaque produitAcheterAbonnements et licences perpétuellesTous les produitsTous les produits en un coup d’œil
Tous les produits
MarketplaceActualités
Tech

Actualités

L’actu dev du jourAnnonces officielles : langages, frameworks, GitHub et IADocs développeursGuides des langages, frameworks et algorithmes

Langages de programmation

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Frameworks front-end webNext.jsReactVue.js · NuxtSvelteKitAngular
Frameworks serveurSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Frameworks d'applications et de bureauTauriFlutterReact NativeElectron

Algorithmes

Bases des algorithmesAnalyse de complexité · Tri · Recherche · Structures de données de base · Arbres et tasAlgorithmes essentielsParcours de graphe · Plus courts chemins et arbres couvrants · Programmation dynamique · Algorithmes gloutons · Diviser pour régner · Backtracking (retour sur trace)Algorithmes avancésAlgorithmes sur les chaînes · Mathématiques et théorie des nombres · Manipulation de bits · Arbres de segments · Union-FindAlgorithmes pratiquesStratégie pour les entretiens de codage · Cache LRU · Limitation de débit · Hachage cohérent
Toute la documentation de développement
Communauté
ProjetsDécouvrir les créateurs et leurs travauxJournaux de développementDécisions et enseignementsPromptsInstructions réutilisablesProblèmes d’outils d’IAProblèmes et contournements de Claude, Codex, GeminiVitrineRéalisations terminéesGuide de la communautéConstruire en toute transparence
Collaborer
Transfert techniqueApplications natives en Rust et eguiRéalisation de site web10 langues, comptes, documentation et téléchargementsRéalisation d'application de bureauRust et egui, sans WebViewChaîne de publication et de paiementSignature, MSI, deb, rpm, AppImage, empreintesPartenaire commercialRecommandez-nous, touchez 30 %ContactDéveloppement, partenariats, investissement
Services
Bureau à distanceAccédez à votre ordinateur depuis le navigateurPaquets d'installation sur mesureSeulement l'utile, réglages préchargés
Acheter
FR
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Se connecter
Se connecter
TASTEDEV

Des petits outils à un meilleur développement.

support@tastedev.netSoutenir TASTEDEV
ProduitsGamme de produitsAcheterDocsTéléchargementsMarketplaceAssistance
CommunautéProjetsJournaux de développementPromptsProblèmes d’outils d’IAVitrine
RèglesÀ proposPolitique de confidentialitéConditions d'utilisationConditions d’abonnementRemboursementRègles de la communauté
CompteSe connecterS'inscrire
Visiteurs
Aujourd’hui
Hier
Vues au total
Société
GXSOFT
Représentant
CHOI YOUNG GU
Numéro d’enregistrement
853-44-00368
Adresse
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Téléphone
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsable de la confidentialité
CHOI YOUNG GU

© 2026 TASTEDEVLes informations produit s'appuient sur des sources de développement vérifiées.Publié · en amélioration

Documentation Dart
Dart
Getting Started with DartSyntax BasicsTypes and DataLibraries and PackagesErrors and TestingKey Concepts
Discussions

Guide Dart · 1/6

Getting Started with Dart

Ce chapitre n'est disponible qu'en anglais pour le moment.

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
Des questions sur ce chapitre ?
Chapitre suivantSyntax 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 commentaire

Meilleurs commentairesPlus récents d'abord

Se connecter · Connectez-vous pour laisser un commentaire.